Exception information:
Message: SQL Syntax 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 'and type != 0 and status!=2 order by priority,firstName asc' at line 1
Please Contact Administrator
#0 /data/websites/staging/skeedazz/trunk/library/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
#1 /data/websites/staging/skeedazz/trunk/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /data/websites/staging/skeedazz/trunk/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('select id from ...', Array)
#3 /data/websites/staging/skeedazz/trunk/application/modules/default/services/DbServiceExtention2.php(878): Zend_Db_Adapter_Pdo_Abstract->query('select id from ...')
#4 /data/websites/staging/skeedazz/trunk/application/modules/booking/controllers/IndexController.php(115): Service_DbServiceExtention2::getStaffBySPId(false)
#5 /data/websites/staging/skeedazz/trunk/library/Zend/Controller/Action.php(513): Booking_IndexController->loginAction()
#6 /data/websites/staging/skeedazz/trunk/library/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('loginAction')
#7 /data/websites/staging/skeedazz/trunk/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#8 /data/websites/staging/skeedazz/trunk/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#9 /data/websites/staging/skeedazz/trunk/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#10 /data/websites/staging/skeedazz/trunk/public/index.php(101): Zend_Application->run()
#11 {main}
Request Parameters:
array (
'module' => 'booking',
'controller' => 'index',
'action' => 'login',
'tmp' => 'giftcards',
)