Ошибка

Приносим извинения, произошла непредвиденная ошибка.

exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near ")"
LINE 1: ...o)) AND (special_inforegion=true) AND (region_id=) AND ( u...
^' in /var/www/lifespain/data/www/library/Zend/Db/Statement/Pdo.php:238
Stack trace:
#0 /var/www/lifespain/data/www/library/Zend/Db/Statement.php(283): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/www/lifespain/data/www/library/Zend/Db/Adapter/Abstract.php(435): Zend_Db_Statement->execute(Array)
#2 /var/www/lifespain/data/www/library/Zend/Db/Adapter/Pdo/Abstract.php(230): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Table_Select), Array)
#3 /var/www/lifespain/data/www/library/Zend/Db/Table/Abstract.php(1329): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Table_Select))
#4 /var/www/lifespain/data/www/library/Zend/Db/Table/Abstract.php(1158): Zend_Db_Table_Abstract->_fetch(Object(Zend_Db_Table_Select))
#5 /var/www/lifespain/data/www/library/Leko/Db/Table/Abstract.php(29): Zend_Db_Table_Abstract->fetchAll('(sold = false) ...', 'position DESC', 6, 0)
#6 /var/www/lifespain/data/www/application_new/default/models/Realty.php(942): Leko_Db_Table_Abstract->getAll('(sold = false) ...', '', 6, 0)
#7 /var/www/lifespain/data/www/application_new/default/controllers/InfoController.php(524): Realty->getAll('(sold = false) ...', '', 6, 0)
#8 /var/www/lifespain/data/www/library/Zend/Controller/Action.php(503): InfoController->viewAction()
#9 /var/www/lifespain/data/www/library/Zend/Controller/Dispatcher/Standard.php(285): Zend_Controller_Action->dispatch('viewAction')
#10 /var/www/lifespain/data/www/library/Zend/Controller/Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#11 /var/www/lifespain/data/www/lifespain.ru/index.php(382): Zend_Controller_Front->dispatch()
#12 {main}