0Item(s)
0 Items View Cart

You have no items in your shopping cart.

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`, `flat`.`name`, `flat`.`small_image`, `flat`.`price`, `flat`.`special_price`, `flat`.`special_from_date`, `flat`.`special_to_date`, `cat_index`.`position` AS `cat_index_position` FROM `sales_flat_order_item` AS `order_items`
 INNER JOIN `sales_flat_order` AS `order` ON `order`.entity_id = order_items.order_id AND `order`.state <> 'canceled'
 LEFT JOIN `catalog_product_entity` AS `e` ON (e.type_id NOT IN ('grouped')) AND e.entity_id = order_items.product_id AND e.entity_type_id = 4
 LEFT JOIN `catalog_product_flat_5` AS `flat` ON (e.entity_id = flat.entity_id ) 
 INNER JOIN `catalog_category_product_index` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id='5' AND cat_index.visibility IN(2, 4) AND cat_index.category_id = '2' WHERE (parent_item_id IS NULL) GROUP BY `order_items`.`product_id` HAVING (SUM(order_items.qty_ordered) > 0) ORDER BY `ordered_qty` desc, `e`.`name` ASC LIMIT 120

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'e.name' in 'order clause', query was: 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`, `flat`.`name`, `flat`.`small_image`, `flat`.`price`, `flat`.`special_price`, `flat`.`special_from_date`, `flat`.`special_to_date`, `cat_index`.`position` AS `cat_index_position` FROM `sales_flat_order_item` AS `order_items`
 INNER JOIN `sales_flat_order` AS `order` ON `order`.entity_id = order_items.order_id AND `order`.state <> 'canceled'
 LEFT JOIN `catalog_product_entity` AS `e` ON (e.type_id NOT IN ('grouped')) AND e.entity_id = order_items.product_id AND e.entity_type_id = 4
 LEFT JOIN `catalog_product_flat_5` AS `flat` ON (e.entity_id = flat.entity_id ) 
 INNER JOIN `catalog_category_product_index` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id='5' AND cat_index.visibility IN(2, 4) AND cat_index.category_id = '2' WHERE (parent_item_id IS NULL) GROUP BY `order_items`.`product_id` HAVING (SUM(order_items.qty_ordered) > 0) ORDER BY `ordered_qty` desc, `e`.`name` ASC LIMIT 120

#0 /var/www/dutchcannabisseeds.com/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/www/dutchcannabisseeds.com/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /var/www/dutchcannabisseeds.com/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /var/www/dutchcannabisseeds.com/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT SUM(orde...', Array)
#4 /var/www/dutchcannabisseeds.com/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('SELECT SUM(orde...', Array)
#5 /var/www/dutchcannabisseeds.com/lib/Zend/Db/Adapter/Abstract.php(737): Varien_Db_Adapter_Pdo_Mysql->query('SELECT SUM(orde...', Array)
#6 /var/www/dutchcannabisseeds.com/lib/Varien/Data/Collection/Db.php(740): Zend_Db_Adapter_Abstract->fetchAll('SELECT SUM(orde...', Array)
#7 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(1046): Varien_Data_Collection_Db->_fetchAll('SELECT SUM(orde...')
#8 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(871): Mage_Eav_Model_Entity_Collection_Abstract->_loadEntities(false, false)
#9 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Review/Model/Observer.php(78): Mage_Eav_Model_Entity_Collection_Abstract->load()
#10 /var/www/dutchcannabisseeds.com/app/code/local/Mage/Core/Model/App.php(1306): Mage_Review_Model_Observer->catalogBlockProductCollectionBeforeToHtml(Object(Varien_Event_Observer))
#11 /var/www/dutchcannabisseeds.com/app/code/local/Mage/Core/Model/App.php(1281): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Review_Model_Observer), 'catalogBlockPro...', Object(Varien_Event_Observer))
#12 /var/www/dutchcannabisseeds.com/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('catalog_block_p...', Array)
#13 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Catalog/Block/Product/List.php(160): Mage::dispatchEvent('catalog_block_p...', Array)
#14 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Block/Abstract.php(922): Mage_Catalog_Block_Product_List->_beforeToHtml()
#15 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Model/Email/Template/Filter.php(208): Mage_Core_Block_Abstract->toHtml()
#16 /var/www/dutchcannabisseeds.com/lib/Varien/Filter/Template.php(163): Mage_Core_Model_Email_Template_Filter->blockDirective(Array)
#17 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Model/Email/Template/Filter.php(560): Varien_Filter_Template->filter('