Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "AND" LINE 2: ....dt_fim IS NULL)) AND ( p.area_chamada_noticia = AND p.cd_p... ^' in /var/www/site/library/Zend/Db/Statement/Pdo.php:228 Stack trace: #0 /var/www/site/library/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array) #1 /var/www/site/library/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array) #2 /var/www/site/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array) #3 /var/www/site/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Select), Array) #4 /var/www/site/library/Zend/Db/Adapter/Abstract.php(736): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Select), Array) #5 /var/www/site/application/modules/principal/models/Action/Index.php(617): Zend_Db_Adapter_Abstract->fetchAll(Object(Zend_Db_Select)) #6 /var/www/site/template/seduc/noti in /var/www/site/library/Zend/Controller/Plugin/Broker.php on line 336