!{TITLE}!

Warning: mssql_query(): message: Incorrect syntax near the keyword 'and'. (severity 15) in /home/www/dog100/cp/lib/database/mssql.php on line 25 Warning: mssql_query(): General SQL Server error: Check messages from the SQL Server (severity 15) in /home/www/dog100/cp/lib/database/mssql.php on line 25 Warning: mssql_query(): Query failed in /home/www/dog100/cp/lib/database/mssql.php on line 25 Error: Incorrect syntax near the keyword 'and'.
select hist.PointAdd as PointAdd, hist.PointDel as PointDel, convert (nvarchar,hist.Action) collate CYRILLIC_GENERAL_CI_AS as Action, hist.Magazine, hist.SummaryOperationCart, convert(varchar, hist.DateActive, 104) as DateActive, convert(varchar, hist.DateActivation, 104) as DateActivation, convert(varchar, hist.Valid, 104) as Valid from Bonus bn, HistoryBonus hist where bn.UserID= and hist.UserID=bn.UserID;