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_3` 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='3' 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_3` 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='3' 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('
_toHtml() #20 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Block/Abstract.php(641): Mage_Core_Block_Abstract->toHtml() #21 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('cms_page', true) #22 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Page/Block/Html/Wrapper.php(52): Mage_Core_Block_Abstract->getChildHtml('', true, true) #23 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Block/Abstract.php(923): Mage_Page_Block_Html_Wrapper->_toHtml() #24 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml() #25 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Block/Abstract.php(923): Mage_Core_Block_Text_List->_toHtml() #26 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Block/Abstract.php(641): Mage_Core_Block_Abstract->toHtml() #27 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Block/Abstract.php(585): Mage_Core_Block_Abstract->_getChildHtml('content', true) #28 /var/www/dutchcannabisseeds.com/app/design/frontend/smartwave/porto/template/page/1column.phtml(49): Mage_Core_Block_Abstract->getChildHtml('content') #29 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/dutchc...') #30 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/smartw...') #31 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView() #32 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Block/Abstract.php(923): Mage_Core_Block_Template->_toHtml() #33 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml() #34 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput() #35 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Cms/Helper/Page.php(137): Mage_Core_Controller_Varien_Action->renderLayout() #36 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_PageController), '460') #37 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Cms/controllers/PageController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_PageController), '460') #38 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_PageController->viewAction() #39 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view') #40 /var/www/dutchcannabisseeds.com/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #41 /var/www/dutchcannabisseeds.com/app/code/local/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch() #42 /var/www/dutchcannabisseeds.com/app/Mage.php(683): Mage_Core_Model_App->run(Array) #43 /var/www/dutchcannabisseeds.com/index.php(91): Mage::run('', 'store') #44 {main}