Zend Framework Default Application

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 'ORDER By idDiv1' at line 1, query was: SELECT title,abbreviation,idDiv1 FROM div1 WHERE idWorks= ORDER By idDiv1

Stack trace:

#0 /home_web/mqdq/library/Zend/Db/Statement.php(303): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home_web/mqdq/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#2 /home_web/mqdq/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT title,ab...', Array)
#3 /home_web/mqdq/library/Zend/Db/Adapter/Abstract.php(739): Zend_Db_Adapter_Pdo_Abstract->query('SELECT title,ab...', Array)
#4 /home_web/mqdq/library/stella_galaxy/models/LocusAbstract.php(813): Zend_Db_Adapter_Abstract->fetchAll('SELECT title,ab...')
#5 /home_web/mqdq/library/stella_galaxy/models/LocusAbstract.php(727): library\stella\models\LocusAbstract->creaListaSezioni()
#6 /home_web/mqdq/library/stella_galaxy/models/LocusAbstract.php(561): library\stella\models\LocusAbstract->imposta()
#7 /home_web/mqdq/library/mqdq_galaxy/models/Locus.php(183): library\stella\models\LocusAbstract->setLocusEsteso('2429470', false, true)
#8 /home_web/mqdq/library/mqdq_galaxy/models/Locus.php(245): library\mqdq\models\Locus->setLocusEsteso('2429470', false, true)
#9 /home_web/mqdq/application/controllers/CeController.php(197): library\mqdq\models\Locus->setLocusTesto('pf2429470')
#10 /home_web/mqdq/library/Zend/Controller/Action.php(516): CeController->testoAction()
#11 /home_web/mqdq/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('testoAction')
#12 /home_web/mqdq/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#13 /home_web/mqdq/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#14 /home_web/mqdq/library/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#15 /home_web/mqdq/public/index.php(28): Zend_Application->run()
#16 {main}  

Request Parameters:

array (
  'controller' => 'ce',
  'action' => 'testo',
  'ordinata' => 'pf2429470',
  'module' => 'default',
)