!{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 bn.AllPoint,bn.ActivePoint,hist.PointAdd,hist.PointDel, convert (nvarchar,bn.StatusCard) collate CYRILLIC_GENERAL_CI_AS as StatusCard, 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;