Fatal error: Uncaught exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and nodes_node_id in (select node_id from nodes where node_status = 1)' at line 1' in /usr/home/equip/public_html/library/Zend/Db/Statement/Pdo.php:238
Stack trace:
#0 /usr/home/equip/public_html/library/Zend/Db/Statement.php(283): Zend_Db_Statement_Pdo->_execute(Array)
#1 /usr/home/equip/public_html/library/Zend/Db/Adapter/Abstract.php(484): Zend_Db_Statement->execute(Array)
#2 /usr/home/equip/public_html/library/Zend/Db/Adapter/Pdo/Abstract.php(235): Zend_Db_Adapter_Abstract->query('SELECT ads_id,a...', Array)
#3 /usr/home/equip/public_html/library/Zend/Db/Adapter/Abstract.php(761): Zend_Db_Adapter_Pdo_Abstract->query('SELECT ads_id,a...', Array)
#4 /usr/home/equip/public_html/application/model/Ads.php(738): Zend_Db_Adapter_Abstract->fetchAssoc('SELECT ads_i in /usr/home/equip/public_html/library/Zend/Db/Statement/Pdo.php on line 238