Application error

Info: 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 (start < '2014-09-30 00:00:00' AND (start > '2012-01-01 00:00:00' OR (show_e' at line 1

Stack trace:

#0 /usr/local/phplib/zend/1.11.7/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
#1 /usr/local/phplib/zend/1.11.7/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /usr/local/phplib/zend/1.11.7/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT t.*,name...', Array)
#3 /usr/local/phplib/zap/3.0.0/Zap/Model/BaseRevPeer.php(1286): Zend_Db_Adapter_Pdo_Abstract->query('SELECT t.*,name...', Array)
#4 /usr/local/phplib/zap/3.0.0/Zap/Model/BaseRevPeer.php(1345): Zap_Model_BaseRevPeer->retrieve('SELECT t.*,name...', Array)
#5 /var/www/vhosts/derand.be/httpdocs/application/models/EventPeer.php(368): Zap_Model_BaseRevPeer->retrieveWhere('event_id= AND (...', 't.start asc', 0, Array, false)
#6 /var/www/vhosts/derand.be/httpdocs/application/models/EventPeer.php(430): Application_Model_EventPeer->getEventDates('12689')
#7 /var/www/vhosts/derand.be/httpdocs/application/controllers/EventController.php(10): Application_Model_EventPeer->getOne('12257', NULL)
#8 /usr/local/phplib/zend/1.11.7/Zend/Controller/Action.php(513): EventController->detailAction()
#9 /usr/local/phplib/zend/1.11.7/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('detailAction')
#10 /usr/local/phplib/zend/1.11.7/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#11 /usr/local/phplib/zend/1.11.7/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#12 /usr/local/phplib/zend/1.11.7/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#13 /var/www/vhosts/derand.be/httpdocs/public/index.php(30): Zend_Application->run()
#14 {main}

Request Parameters:

array (
  'id' => '12257',
  'name' => 'spocje-9-12-jaar',
  'controller' => 'event',
  'action' => 'detail',
  'language' => 'nl',
)