Notice: Trying to get property of non-object in /var/www/vhosts/gimh.es/httpdocs/gimcentral/application/controllers/UsuariosController.php on line 19

Notice: Undefined variable: resHabs in /var/www/vhosts/gimh.es/httpdocs/gimcentral/application/models/Hotel.php on line 857

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/gimh.es/httpdocs/gimcentral/application/models/Hotel.php on line 857
exception 'PDOException' with 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' in /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Db/Statement/Pdo.php:228 Stack trace: #0 /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array) #1 /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array) #2 /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Db/Adapter/Abstract.php(468): Zend_Db_Statement->execute(Array) #3 /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT veci FRO...', Array) #4 /var/www/vhosts/gimh.es/httpdocs/gimcentral/application/models/Hotel.php(190): Zend_Db_Adapter_Pdo_Abstract->query('SELECT veci FRO...') #5 /var/www/vhosts/gimh.es/httpdocs/gimcentral/application/controllers/UsuariosController.php(28): Model_Hotel->menueci(NULL) #6 /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Controller/Action.php(513): UsuariosController->gridusuariosAction() #7 /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('gridusuariosAct...') #8 /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #9 /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch() #10 /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() #11 /var/www/vhosts/gimh.es/httpdocs/gimcentral/public/index.php(47): Zend_Application->run() #12 {main} Next exception 'Zend_Db_Statement_Exception' with 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' in /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Db/Statement/Pdo.php:234 Stack trace: #0 /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array) #1 /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Db/Adapter/Abstract.php(468): Zend_Db_Statement->execute(Array) #2 /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT veci FRO...', Array) #3 /var/www/vhosts/gimh.es/httpdocs/gimcentral/application/models/Hotel.php(190): Zend_Db_Adapter_Pdo_Abstract->query('SELECT veci FRO...') #4 /var/www/vhosts/gimh.es/httpdocs/gimcentral/application/controllers/UsuariosController.php(28): Model_Hotel->menueci(NULL) #5 /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Controller/Action.php(513): UsuariosController->gridusuariosAction() #6 /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('gridusuariosAct...') #7 /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #8 /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch() #9 /var/www/vhosts/gimh.es/httpdocs/gimcentral/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() #10 /var/www/vhosts/gimh.es/httpdocs/gimcentral/public/index.php(47): Zend_Application->run() #11 {main}
Notice: Undefined variable: query in /var/www/vhosts/gimh.es/httpdocs/gimcentral/application/models/Hotel.php on line 195

Fatal error: Call to a member function fetch() on a non-object in /var/www/vhosts/gimh.es/httpdocs/gimcentral/application/models/Hotel.php on line 195