Error PageRegistration ::

The following error occurred:

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 ') order by school_id' at line 1' in /var/www/library/ZendFramework-1.10.4-minimal/library/Zend/Db/Statement/Pdo.php:228
Stack trace:
#0 /var/www/library/ZendFramework-1.10.4-minimal/library/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)
#1 /var/www/library/ZendFramework-1.10.4-minimal/library/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
#2 /var/www/library/ZendFramework-1.10.4-minimal/library/Zend/Db/Adapter/Abstract.php(468): Zend_Db_Statement->execute(Array)
#3 /var/www/library/ZendFramework-1.10.4-minimal/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('select * from t...', Array)
#4 /var/www/library/ZendFramework-1.10.4-minimal/library/Zend/Db/Adapter/Abstract.php(706): Zend_Db_Adapter_Pdo_Abstract->query('select * from t...', Array)
#5 /var/www/htdocs/topapplyv2beta/application/formadmin/models/Fieldmanagement/Utilities.php(44): Zend_Db_Adapter_Abstract->fetchAll('select * from t...')
#6 /var/www/htdocs/topapplyv2beta/application/applicationform/controllers/LoginController.php(44): Fieldmanagement_Utilities->getStandardText('login')
#7 /var/www/library/ZendFramework-1.10.4-minimal/library/Zend/Controller/Action.php(513): Applicationformmodule_LoginController->loginAction()
#8 /var/www/library/ZendFramework-1.10.4-minimal/library/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('loginAction')
#9 /var/www/library/ZendFramework-1.10.4-minimal/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#10 /var/www/htdocs/topapplyv2beta/html/applicationform.php(127): Zend_Controller_Front->dispatch()
#11 {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 ') order by school_id' at line 1' in /var/www/library/ZendFramework-1.10.4-minimal/library/Zend/Db/Statement/Pdo.php:234
Stack trace:
#0 /var/www/library/ZendFramework-1.10.4-minimal/library/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/www/library/ZendFramework-1.10.4-minimal/library/Zend/Db/Adapter/Abstract.php(468): Zend_Db_Statement->execute(Array)
#2 /var/www/library/ZendFramework-1.10.4-minimal/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('select * from t...', Array)
#3 /var/www/library/ZendFramework-1.10.4-minimal/library/Zend/Db/Adapter/Abstract.php(706): Zend_Db_Adapter_Pdo_Abstract->query('select * from t...', Array)
#4 /var/www/htdocs/topapplyv2beta/application/formadmin/models/Fieldmanagement/Utilities.php(44): Zend_Db_Adapter_Abstract->fetchAll('select * from t...')
#5 /var/www/htdocs/topapplyv2beta/application/applicationform/controllers/LoginController.php(44): Fieldmanagement_Utilities->getStandardText('login')
#6 /var/www/library/ZendFramework-1.10.4-minimal/library/Zend/Controller/Action.php(513): Applicationformmodule_LoginController->loginAction()
#7 /var/www/library/ZendFramework-1.10.4-minimal/library/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('loginAction')
#8 /var/www/library/ZendFramework-1.10.4-minimal/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#9 /var/www/htdocs/topapplyv2beta/html/applicationform.php(127): Zend_Controller_Front->dispatch()
#10 {main}