Fatal error: Uncaught 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/sites/h/hini.org.uk/public_html/lib/Zend/Db/Statement/Pdo.php:238 Stack trace: #0 /var/sites/h/hini.org.uk/public_html/lib/Zend/Db/Statement.php(284): Zend_Db_Statement_Pdo->_execute(Array) #1 /var/sites/h/hini.org.uk/public_html/lib/Zend/Db/Adapter/Abstract.php(468): Zend_Db_Statement->execute(Array) #2 /var/sites/h/hini.org.uk/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT type,nam...', Array) #3 /var/sites/h/hini.org.uk/public_html/lib/Zend/Db/Adapter/Abstract.php(706): Zend_Db_Adapter_Pdo_Abstract->query('SELECT type,nam...', Array) #4 /var/sites/h/hini.org.uk/public_html/app/controllers/HostelsController.php(23): Zend_Db_Adapter_Abstract->fetchAll('SELECT type,nam...') #5 /var/sites/h/hi in /var/sites/h/hini.org.uk/public_html/lib/Zend/Db/Statement/Pdo.php on line 238