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 'order by g.general_type_id asc' 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 * from z...', Array)
#3 /usr/local/phplib/zap/3.0.0/Zap/Db/Query.php(192): Zend_Db_Adapter_Pdo_Abstract->query('select * from z...', Array)
#4 /var/www/derand.be/prod/application/views/scripts/event/list-item.phtml(47): Zap_Db_Query::findAll('select * from z...')
#5 /usr/local/phplib/zend/1.11.7/Zend/View.php(108): include('/var/www/derand...')
#6 /usr/local/phplib/zend/1.11.7/Zend/View/Abstract.php(888): Zend_View->_run('/var/www/derand...')
#7 /usr/local/phplib/zend/1.11.7/Zend/View/Helper/Partial.php(105): Zend_View_Abstract->render(NULL)
#8 /usr/local/phplib/zend/1.11.7/Zend/View/Helper/PartialLoop.php(93): Zend_View_Helper_Partial->partial('event/list-item...', NULL, NULL)
#9 /usr/local/phplib/zend/1.11.7/Zend/View/Abstract.php(349): Zend_View_Helper_PartialLoop->partialLoop('event/list-item...', NULL)
#10 /var/www/derand.be/prod/application/models/EventPeer.php(1063): Zend_View_Abstract->__call('partialLoop', Array)
#11 /var/www/derand.be/prod/application/controllers/PageController.php(216): Application_Model_EventPeer->renderList(Object(Zend_Paginator))
#12 /var/www/derand.be/prod/application/controllers/PageController.php(72): PageController->renderEventsBlock(Object(Application_Model_PageBlock))
#13 /usr/local/phplib/zend/1.11.7/Zend/Controller/Action.php(513): PageController->detailAction()
#14 /usr/local/phplib/zend/1.11.7/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('detailAction')
#15 /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))
#16 /usr/local/phplib/zend/1.11.7/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#17 /usr/local/phplib/zend/1.11.7/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#18 /var/www/derand.be/prod/public/index.php(36): Zend_Application->run()
#19 {main}

Request Parameters:

array (
  'id' => '169',
  'name' => 'programme',
  'paging' => '1',
  'controller' => 'page',
  'action' => 'detail',
  'language' => 'nl',
)