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 ')' at line 1

Stack trace:

#0 /var/www/vhosts/compacthabit.com/httpdocs/library/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/www/vhosts/compacthabit.com/httpdocs/library/Zend/Db/Adapter/Abstract.php(468): Zend_Db_Statement->execute(Array)
#2 /var/www/vhosts/compacthabit.com/httpdocs/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Table_Select), Array)
#3 /var/www/vhosts/compacthabit.com/httpdocs/library/Zend/Db/Table/Abstract.php(1509): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Table_Select))
#4 /var/www/vhosts/compacthabit.com/httpdocs/library/Zend/Db/Table/Abstract.php(1325): Zend_Db_Table_Abstract->_fetch(Object(Zend_Db_Table_Select))
#5 /var/www/vhosts/compacthabit.com/httpdocs/application/modules/admin/models/Plantilla1Mapper.php(145): Zend_Db_Table_Abstract->fetchAll('id_referencia=')
#6 /var/www/vhosts/compacthabit.com/httpdocs/application/modules/admin/models/Plantilla1.php(422): Admin_Model_Plantilla1Mapper->fetchPlantilla1('univers-compact...', 'default')
#7 /var/www/vhosts/compacthabit.com/httpdocs/application/controllers/NivellsController.php(144): Admin_Model_Plantilla1->fetchPlantilla1('univers-compact...', 'default')
#8 /var/www/vhosts/compacthabit.com/httpdocs/library/Zend/Controller/Action.php(513): NivellsController->textAction()
#9 /var/www/vhosts/compacthabit.com/httpdocs/library/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('textAction')
#10 /var/www/vhosts/compacthabit.com/httpdocs/library/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#11 /var/www/vhosts/compacthabit.com/httpdocs/library/Zend/Application/Bootstrap/Bootstrap.php(77): Zend_Controller_Front->dispatch()
#12 /var/www/vhosts/compacthabit.com/httpdocs/library/Zend/Application.php(358): Zend_Application_Bootstrap_Bootstrap->run()
#13 /var/www/vhosts/compacthabit.com/httpdocs/public/index.php(33): Zend_Application->run()
#14 {main}  

Request Parameters:

array(4) {
  ["controller"]=>
  string(7) "nivells"
  ["action"]=>
  string(4) "text"
  ["titular"]=>
  string(20) "univers-compacthabit"
  ["module"]=>
  string(7) "default"
}