An error occurred

Application error

Exception information:

Message: 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 ') OR o.subfunktie_id2 in () OR o.subfunktie_id3 in () OR o.subfunktie_id4 ' at line 3

Stack trace:

#0 /var/www/vhosts/limburgwerkt-ontw.nl/httpdocs/limburgshared/productie/library/Zend/Db/Statement.php(283): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/www/vhosts/limburgwerkt-ontw.nl/httpdocs/limburgshared/productie/library/Zend/Db/Adapter/Abstract.php(484): Zend_Db_Statement->execute(Array)
#2 /var/www/vhosts/limburgwerkt-ontw.nl/httpdocs/limburgshared/productie/library/Zend/Db/Adapter/Pdo/Abstract.php(235): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Select), Array)
#3 /var/www/vhosts/limburgwerkt-ontw.nl/httpdocs/limburgshared/productie/application/admin/models/Opleiding.php(672): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Select))
#4 /var/www/vhosts/limburgwerkt-ontw.nl/httpdocs/limburgstudeert/productie/application/default/controllers/IndexController.php(323): Model_Opleiding->fetchEntryByFunktie('2', false, 'NOT(opleiding_t...', 'asc', NULL, 0)
#5 /var/www/vhosts/limburgwerkt-ontw.nl/httpdocs/limburgshared/productie/library/Zend/Controller/Action.php(512): IndexController->funktieAction()
#6 /var/www/vhosts/limburgwerkt-ontw.nl/httpdocs/limburgshared/productie/library/Zend/Controller/Dispatcher/Standard.php(288): Zend_Controller_Action->dispatch('funktieAction')
#7 /var/www/vhosts/limburgwerkt-ontw.nl/httpdocs/limburgshared/productie/library/Zend/Controller/Front.php(936): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#8 /var/www/vhosts/limburgwerkt-ontw.nl/httpdocs/limburgshared/productie/library/Zend/Application/Bootstrap/Bootstrap.php(77): Zend_Controller_Front->dispatch()
#9 /var/www/vhosts/limburgwerkt-ontw.nl/httpdocs/limburgshared/productie/library/Zend/Application.php(303): Zend_Application_Bootstrap_Bootstrap->run()
#10 /var/www/vhosts/limburgwerkt-ontw.nl/httpdocs/limburgstudeert/productie/public/index.php(21): Zend_Application->run()
#11 {main}

Request Parameters:

array(5) {
  ["controller"]=>
  string(5) "index"
  ["action"]=>
  string(7) "funktie"
  ["id"]=>
  string(1) "2"
  ["module"]=>
  string(7) "default"
  ["regio"]=>
  string(3) "all"
}
production