Start Here

Year

Make

Model

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 category_id LIKE 'ARN002'' at line 1, query was: SELECT mmp_rank.rank FROM (SELECT @serial := @serial+1 AS `rank`, ps.make_id, ps.model_id, ps.category_id FROM mmp_sales AS ps WHERE months = 12 ORDER BY revenue DESC) AS mmp_rank WHERE make_id = 56 AND model_id =  AND category_id LIKE 'ARN002'

#0 /home/goparts/www/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/goparts/www/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home/goparts/www/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /home/goparts/www/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT mmp_rank...', Array)
#4 /home/goparts/www/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SELECT mmp_rank...', Array)
#5 /home/goparts/www/lib/Zend/Db/Adapter/Abstract.php(828): Varien_Db_Adapter_Pdo_Mysql->query('SELECT mmp_rank...', Array)
#6 /home/goparts/www/app/design/frontend/goparts/default/template/custom/second_level_popular.phtml(11): Zend_Db_Adapter_Abstract->fetchOne('SELECT mmp_rank...')
#7 /home/goparts/www/app/code/core/Mage/Core/Block/Template.php(241): include('/home/goparts/w...')
#8 /home/goparts/www/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/gopart...')
#9 /home/goparts/www/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#10 /home/goparts/www/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#11 /home/goparts/www/app/design/frontend/goparts/default/template/parts/category.phtml(657): Mage_Core_Block_Abstract->toHtml()
#12 /home/goparts/www/app/code/core/Mage/Core/Block/Template.php(241): include('/home/goparts/w...')
#13 /home/goparts/www/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/gopart...')
#14 /home/goparts/www/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#15 /home/goparts/www/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#16 /home/goparts/www/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#17 /home/goparts/www/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Text_List->_toHtml()
#18 /home/goparts/www/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#19 /home/goparts/www/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#20 /home/goparts/www/app/design/frontend/goparts/default/template/page/2columns-right.phtml(48): Mage_Core_Block_Abstract->getChildHtml('content')
#21 /home/goparts/www/app/code/core/Mage/Core/Block/Template.php(241): include('/home/goparts/w...')
#22 /home/goparts/www/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/gopart...')
#23 /home/goparts/www/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#24 /home/goparts/www/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#25 /home/goparts/www/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#26 /home/goparts/www/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#27 /home/goparts/www/app/code/local/Goparts/Parts/controllers/IndexController.php(276): Mage_Core_Controller_Varien_Action->renderLayout()
#28 /home/goparts/www/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Goparts_Parts_IndexController->IndexAction()
#29 /home/goparts/www/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#30 /home/goparts/www/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#31 /home/goparts/www/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#32 /home/goparts/www/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#33 /home/goparts/www/index.php(90): Mage::run('', 'store')
#34 {main}