ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]An expression of non-boolean type specified in a context where a condition is expected, near 'and'. ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid usage of the option FIRST in the FETCH statement.