Application error

Message: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND (t.price<=) ORDER BY `discount_proc` desc' at line 4

Stack trace:

#0 /home/pakiety/domains/pakietyhotelowe.pl/public_html/library/Zend/Db/Statement.php(303): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/pakiety/domains/pakietyhotelowe.pl/public_html/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /home/pakiety/domains/pakietyhotelowe.pl/public_html/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Select), Array)
#3 /home/pakiety/domains/pakietyhotelowe.pl/public_html/library/Zend/Db/Adapter/Abstract.php(736): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Select), Array)
#4 /home/pakiety/domains/pakietyhotelowe.pl/public_html/application/models/Packages.php(210): Zend_Db_Adapter_Abstract->fetchAll(Object(Zend_Db_Select))
#5 /home/pakiety/domains/pakietyhotelowe.pl/public_html/application/modules/default/controllers/SearchController.php(110): Model_Packages->getNearUpdated(false, false, Array, Array, Array, 'discount')
#6 /home/pakiety/domains/pakietyhotelowe.pl/public_html/library/Zend/Controller/Action.php(516): SearchController->indexAction()
#7 /home/pakiety/domains/pakietyhotelowe.pl/public_html/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('indexAction')
#8 /home/pakiety/domains/pakietyhotelowe.pl/public_html/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#9 /home/pakiety/domains/pakietyhotelowe.pl/public_html/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#10 /home/pakiety/domains/pakietyhotelowe.pl/public_html/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#11 /home/pakiety/domains/pakietyhotelowe.pl/public_html/public/index.php(32): Zend_Application->run()
#12 {main}  

Request Parameters:

array (
  'controller' => 'search',
  'module' => 'default',
  'action' => 'index',
)