Database Error

SQL Execute failed: SELECT COUNT(IM_ITEM.ITEM_NO) as total FROM IM_ITEM,IM_CATEG_COD,IM_INV WHERE IM_CATEG_COD.CATEG_COD = IM_ITEM.CATEG_COD AND IM_INV.ITEM_NO = IM_ITEM.ITEM_NO AND IM_INV.LOC_ID AND IM_ITEM.STAT <> 'D'

This error occured in the sqlsrv.inc file at line 75

Please inform the system administrator of this error.

SQL: 
sqlsrv_errors
Array ( [0] => Array ( [0] => IMSSP [SQLSTATE] => IMSSP [1] => -14 [code] => -14 [2] => An invalid parameter was passed to sqlsrv_query. [message] => An invalid parameter was passed to sqlsrv_query. ) )