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