Error in executing query.
Array ( [0] => Array ( [0] => 42000 [SQLSTATE] => 42000 [1] => 102 [code] => 102 [2] => [Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near 'WHERE'. [message] => [Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near 'WHERE'. ) )