an unexpected error occured.

Unexpected Exception: 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 `rank` ASC LIMIT 1' at line 1


#0 /home/familiedrukker/public_html/mvc/libraries/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/familiedrukker/public_html/mvc/libraries/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /home/familiedrukker/public_html/mvc/libraries/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Table_Select), Array)
#3 /home/familiedrukker/public_html/mvc/libraries/Zend/Db/Table/Abstract.php(1529): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Table_Select))
#4 /home/familiedrukker/public_html/mvc/libraries/Zend/Db/Table/Abstract.php(1344): Zend_Db_Table_Abstract->_fetch(Object(Zend_Db_Table_Select))
#5 /home/familiedrukker/public_html/mvc/application/modules/shop/models/DbTables/ShopProductPhotos.php(37): Zend_Db_Table_Abstract->fetchAll(Object(Zend_Db_Table_Select))
#6 /home/familiedrukker/public_html/mvc/application/modules/front/controllers/ProductController.php(190): Model_DbTables_ShopProductPhotos->getAllRecords(Array, Array, '', Array, 1)
#7 /home/familiedrukker/public_html/mvc/libraries/Zend/Controller/Action.php(516): ProductController->viewAction()
#8 /home/familiedrukker/public_html/mvc/libraries/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('viewAction')
#9 /home/familiedrukker/public_html/mvc/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#10 /home/familiedrukker/public_html/index.php(142): Zend_Controller_Front->dispatch()
#11 {main}