Ошибка

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

exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "AND"
LINE 1: ...0000) AND cost > (2250000-50000) AND district_id= AND region...
^' 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('SELECT * FROM r...', Array)
#3 /var/www/lifespain/data/www/application_new/default/models/Realty.php(1422): Zend_Db_Adapter_Pdo_Abstract->query('SELECT * FROM r...')
#4 /var/www/lifespain/data/www/application_new/default/controllers/RealtyController.php(945): Realty->getRelRealty(6186)
#5 /var/www/lifespain/data/www/library/Zend/Controller/Action.php(503): RealtyController->viewAction()
#6 /var/www/lifespain/data/www/library/Zend/Controller/Dispatcher/Standard.php(285): Zend_Controller_Action->dispatch('viewAction')
#7 /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))
#8 /var/www/lifespain/data/www/lifespain.ru/index.php(397): Zend_Controller_Front->dispatch()
#9 {main}