Warning: sqlsrv_query() expects parameter 1 to be resource, boolean given in D:\nac\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:\nac\php\common\dbconnector.php:344 Stack trace: #0 D:\nac\contents\admin\news\M_news_class.php(71): DbConnector->sendQuery(' DECLARE @Ct_gr...', NULL) #1 D:\nac\contents\store\index.php(59): NewsSch->getSearchResult_newsList(Object(DbConnector), Array) #2 {main} thrown in D:\nac\php\common\dbconnector.php on line 344