Error: 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 data_loughborough.title' at line 1#0 /usr/share/ZendFramework/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array) #1 /usr/share/ZendFramework/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array) #2 /usr/share/ZendFramework/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT data_lou...', Array) #3 /usr/share/ZendFramework/Zend/Db/Adapter/Abstract.php(736): Zend_Db_Adapter_Pdo_Abstract->query('SELECT data_lou...', Array) #4 /home/sites/inloughborough.com/application/models/Companies.php(38): Zend_Db_Adapter_Abstract->fetchAll('SELECT data_lou...') #5 /home/sites/inloughborough.com/application/models/CategoryText.php(132): Companies->getCompaniesByCategory(NULL) #6 /home/sites/inloughborough.com/application/models/CategoryIndex.php(120): CategoryText->getCompanies(NULL) #7 /home/sites/inloughborough.com/application/controllers/CategoryController.php(39): CategoryIndex->getCategoryInformation('Sex Shops', 0) #8 /usr/share/ZendFramework/Zend/Controller/Action.php(516): CategoryController->indexAction() #9 /usr/share/ZendFramework/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('indexAction') #10 /usr/share/ZendFramework/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #11 /home/sites/inloughborough.com/application/bootstrap.php(140): Zend_Controller_Front->dispatch() #12 /home/sites/inloughborough.com/public_html/index.php(33): Bootstrap->runApp() #13 {main}

#0 /usr/share/ZendFramework/Zend/Controller/Front.php(965): Zend_Controller_Plugin_Broker->postDispatch(Object(Zend_Controller_Request_Http))
#1 /home/sites/inloughborough.com/application/bootstrap.php(140): Zend_Controller_Front->dispatch()
#2 /home/sites/inloughborough.com/public_html/index.php(33): Bootstrap->runApp()
#3 {main}