Any Questions?

07535 904 866
Work Time 09:00 - 18:00
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`, `e`.`news_from_date`, `e`.`news_to_date` 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_1` 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='1' 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 LIMIT 8

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'e.news_from_date' in 'field list', 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`, `e`.`news_from_date`, `e`.`news_to_date` 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_1` 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='1' 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 LIMIT 8

#0 /chroot/home/oneninep/19power.co.uk/html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /chroot/home/oneninep/19power.co.uk/html/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /chroot/home/oneninep/19power.co.uk/html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT SUM(orde...', Array)
#4 /chroot/home/oneninep/19power.co.uk/html/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('SELECT SUM(orde...', Array)
#5 /chroot/home/oneninep/19power.co.uk/html/lib/Zend/Db/Adapter/Abstract.php(737): Varien_Db_Adapter_Pdo_Mysql->query('SELECT SUM(orde...', Array)
#6 /chroot/home/oneninep/19power.co.uk/html/lib/Varien/Data/Collection/Db.php(740): Zend_Db_Adapter_Abstract->fetchAll('SELECT SUM(orde...', Array)
#7 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(1046): Varien_Data_Collection_Db->_fetchAll('SELECT SUM(orde...')
#8 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(871): Mage_Eav_Model_Entity_Collection_Abstract->_loadEntities(false, false)
#9 /chroot/home/oneninep/19power.co.uk/html/lib/Varien/Data/Collection.php(752): Mage_Eav_Model_Entity_Collection_Abstract->load()
#10 /chroot/home/oneninep/19power.co.uk/html/app/design/frontend/smartwave/19power/template/filterproducts/list.phtml(17): Varien_Data_Collection->count()
#11 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Block/Template.php(241): include('/chroot/home/on...')
#12 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/smartw...')
#13 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#14 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Block/Abstract.php(923): Mage_Core_Block_Template->_toHtml()
#15 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Model/Email/Template/Filter.php(208): Mage_Core_Block_Abstract->toHtml()
#16 [internal function]: Mage_Core_Model_Email_Template_Filter->blockDirective(Array)
#17 /chroot/home/oneninep/19power.co.uk/html/lib/Varien/Filter/Template.php(163): call_user_func(Array, Array)
#18 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Model/Email/Template/Filter.php(560): Varien_Filter_Template->filter('
_toHtml() #21 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Block/Abstract.php(641): Mage_Core_Block_Abstract->toHtml() #22 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('cms_page', true) #23 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Page/Block/Html/Wrapper.php(52): Mage_Core_Block_Abstract->getChildHtml('', true, true) #24 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Block/Abstract.php(923): Mage_Page_Block_Html_Wrapper->_toHtml() #25 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml() #26 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Block/Abstract.php(923): Mage_Core_Block_Text_List->_toHtml() #27 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Block/Abstract.php(641): Mage_Core_Block_Abstract->toHtml() #28 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Block/Abstract.php(585): Mage_Core_Block_Abstract->_getChildHtml('content', true) #29 /chroot/home/oneninep/19power.co.uk/html/app/design/frontend/smartwave/19power/template/page/1column.phtml(49): Mage_Core_Block_Abstract->getChildHtml('content') #30 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Block/Template.php(241): include('/chroot/home/on...') #31 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/smartw...') #32 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView() #33 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Block/Abstract.php(923): Mage_Core_Block_Template->_toHtml() #34 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml() #35 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput() #36 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Cms/Helper/Page.php(137): Mage_Core_Controller_Varien_Action->renderLayout() #37 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_PageController), '48') #38 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Cms/controllers/PageController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_PageController), '48') #39 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_PageController->viewAction() #40 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view') #41 /chroot/home/oneninep/19power.co.uk/html/app/code/community/ArtsOnIT/OfflineMaintenance/Controller/Router/Standard.php(46): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #42 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): ArtsOnIT_OfflineMaintenance_Controller_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #43 /chroot/home/oneninep/19power.co.uk/html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch() #44 /chroot/home/oneninep/19power.co.uk/html/app/Mage.php(684): Mage_Core_Model_App->run(Array) #45 /chroot/home/oneninep/19power.co.uk/html/index.php(85): Mage::run('', 'store') #46 {main}