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 ')) GROUP BY `category_id` ORDER BY `a`.`rank` ASC LIMIT 4' at line 2
234
/var/www/vhosts/testbaron.com/httpdocs/_lib/Zend/Db/Statement/Pdo.php
#0 /var/www/vhosts/testbaron.com/httpdocs/_lib/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/www/vhosts/testbaron.com/httpdocs/_lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /var/www/vhosts/testbaron.com/httpdocs/_lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Table_Select), Array)
#3 /var/www/vhosts/testbaron.com/httpdocs/_lib/Zend/Db/Table/Abstract.php(1526): Zend_Db_Adapter_Pdo_Abstract->query(Object(Zend_Db_Table_Select))
#4 /var/www/vhosts/testbaron.com/httpdocs/_lib/Zend/Db/Table/Abstract.php(1342): Zend_Db_Table_Abstract->_fetch(Object(Zend_Db_Table_Select))
#5 /var/www/vhosts/testbaron.com/httpdocs/_app/models/CategoryProductModel.php(158): Zend_Db_Table_Abstract->fetchAll(Object(Zend_Db_Table_Select))
#6 /var/www/vhosts/testbaron.com/httpdocs/_app/modules/default/controllers/ParentCategoryController.php(43): CategoryProductModel->getCategoryWinners(Array, 4)
#7 /var/www/vhosts/testbaron.com/httpdocs/_lib/Zend/Controller/Action.php(513): ParentCategoryController->indexAction()
#8 /var/www/vhosts/testbaron.com/httpdocs/_lib/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('indexAction')
#9 /var/www/vhosts/testbaron.com/httpdocs/_lib/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#10 /var/www/vhosts/testbaron.com/httpdocs/_app/Bootstrap.php(355): Zend_Controller_Front->dispatch()
#11 /var/www/vhosts/testbaron.com/httpdocs/_app/Bootstrap.php(9): Bootstrap->setFrontController()
#12 /var/www/vhosts/testbaron.com/httpdocs/index.php(63): Bootstrap::getInstance()
#13 {main}