Email to a Friend
Best Sales
There has been an error processing your request
SELECT SUM(order_items.qty_ordered) AS `ordered_qty`, `order_items`.`name` AS `order_items_name`, `order_items`.`product_id` AS `entity_id`, `e`.`entity_type_id`, `e`.`attribute_set_id`, `e`.`type_id`, `e`.`sku`, `e`.`has_options`, `e`.`required_options`, `e`.`created_at`, `e`.`updated_at` FROM `sm_sales_flat_order_item` AS `order_items` INNER JOIN `sm_sales_flat_order` AS `order` ON `order`.entity_id = order_items.order_id AND `order`.state <> 'canceled' LEFT JOIN `sm_catalog_product_entity` AS `e` ON (e.type_id NOT IN ('grouped', 'configurable', 'bundle')) AND e.entity_id = order_items.product_id AND e.entity_type_id = 10 WHERE (parent_item_id IS NULL) AND (((e.visibility = '4') OR (e.visibility = '2'))) GROUP BY `order_items`.`product_id` HAVING (SUM(order_items.qty_ordered) > 0) ORDER BY `ordered_qty` desc
Trace: #0 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array) #1 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array) #2 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array) #3 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT SUM(orde...', Array) #4 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('SELECT SUM(orde...', Array) #5 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/lib/Zend/Db/Adapter/Abstract.php(734): Varien_Db_Adapter_Pdo_Mysql->query('SELECT SUM(orde...', Array) #6 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/lib/Varien/Data/Collection/Db.php(740): Zend_Db_Adapter_Abstract->fetchAll('SELECT SUM(orde...', Array) #7 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(1047): Varien_Data_Collection_Db->_fetchAll('SELECT SUM(orde...') #8 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(871): Mage_Eav_Model_Entity_Collection_Abstract->_loadEntities(false, false) #9 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/lib/Varien/Data/Collection.php(741): Mage_Eav_Model_Entity_Collection_Abstract->load() #10 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/design/frontend/default/sm_sport/template/catalog/product/bestseller.phtml(31): Varien_Data_Collection->getIterator() #11 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Block/Template.php(236): include('/home/cqjmx9pg0...') #12 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Block/Template.php(267): Mage_Core_Block_Template->fetchView('frontend/defaul...') #13 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Block/Template.php(281): Mage_Core_Block_Template->renderView() #14 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Block/Abstract.php(867): Mage_Core_Block_Template->_toHtml() #15 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml() #16 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Block/Abstract.php(867): Mage_Core_Block_Text_List->_toHtml() #17 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Block/Abstract.php(586): Mage_Core_Block_Abstract->toHtml() #18 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Block/Abstract.php(530): Mage_Core_Block_Abstract->_getChildHtml('left', true) #19 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/design/frontend/default/sm_sport/template/page/2columns-right.phtml(79): Mage_Core_Block_Abstract->getChildHtml('left') #20 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Block/Template.php(236): include('/home/cqjmx9pg0...') #21 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Block/Template.php(267): Mage_Core_Block_Template->fetchView('frontend/defaul...') #22 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Block/Template.php(281): Mage_Core_Block_Template->renderView() #23 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Block/Abstract.php(867): Mage_Core_Block_Template->_toHtml() #24 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml() #25 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput() #26 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Sendfriend/controllers/ProductController.php(141): Mage_Core_Controller_Varien_Action->renderLayout() #27 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Sendfriend_ProductController->sendAction() #28 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('send') #29 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #30 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch() #31 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/app/Mage.php(683): Mage_Core_Model_App->run(Array) #32 /home/cqjmx9pg0ssx/public_html/blazerproducts.com/index.php(87): Mage::run('', 'store') #33 {main}
Error log record number: 1432637928573
Magento is a trademark of Magento Inc. Copyright © 2012 Magento Inc.