Warning: sqlsrv_query() expects parameter 1 to be resource, boolean given in D:\laa\php\common\dbconnector.php on line 341

Fatal error: Uncaught exception 'Exception' with message 'An invalid parameter was passed to sqlsrv_query.<br />' in D:\laa\php\common\dbconnector.php:344 Stack trace: #0 D:\laa\contents\news\news_common_class.php(200): DbConnector->sendQuery(' DECLARE @data_...', Array) #1 D:\laa\contents\news\index.php(54): NewTopicsInfo->getList2(Object(DbConnector), Array) #2 {main} thrown in D:\laa\php\common\dbconnector.php on line 344