SQLSTATE[42S22]: Column not found: 1054 Unknown column 'e.status' in 'where clause', query was: SELECT count(DISTINCT e.entity_id) FROM `mg_sales_flat_order_item` AS `order_items`
 INNER JOIN `mg_sales_flat_order` AS `order` ON `order`.entity_id = order_items.order_id AND `order`.state <> 'canceled'
 LEFT JOIN `mg_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 = 4
 INNER JOIN `mg_catalog_category_product_index` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id='7' AND cat_index.visibility IN(2, 4) AND cat_index.category_id = '2' WHERE (parent_item_id IS NULL) AND (e.status = '1')

#0 /home/paparyw/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/paparyw/public_html/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home/paparyw/public_html/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /home/paparyw/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT count(DI...', Array)
#4 /home/paparyw/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('SELECT count(DI...', Array)
#5 /home/paparyw/public_html/lib/Zend/Db/Adapter/Abstract.php(828): Varien_Db_Adapter_Pdo_Mysql->query('SELECT count(DI...', Array)
#6 /home/paparyw/public_html/lib/Varien/Data/Collection/Db.php(225): Zend_Db_Adapter_Abstract->fetchOne(Object(Varien_Db_Select), Array)
#7 /home/paparyw/public_html/app/design/frontend/default/MAG090181/template/bestseller/bestseller.phtml(2): Varien_Data_Collection_Db->getSize()
#8 /home/paparyw/public_html/app/code/core/Mage/Core/Block/Template.php(243): include('/home/paparyw/p...')
#9 /home/paparyw/public_html/app/code/core/Mage/Core/Block/Template.php(275): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#10 /home/paparyw/public_html/app/code/core/Mage/Core/Block/Template.php(289): Mage_Core_Block_Template->renderView()
#11 /home/paparyw/public_html/app/code/local/Megnor/Bestseller/Block/Bestseller.php(49): Mage_Core_Block_Template->_toHtml()
#12 /home/paparyw/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Megnor_Bestseller_Block_Bestseller->_toHtml()
#13 /home/paparyw/public_html/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#14 /home/paparyw/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Text_List->_toHtml()
#15 /home/paparyw/public_html/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#16 /home/paparyw/public_html/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('left', true)
#17 /home/paparyw/public_html/app/design/frontend/default/MAG090181/template/page/2columns-left.phtml(57): Mage_Core_Block_Abstract->getChildHtml('left')
#18 /home/paparyw/public_html/app/code/core/Mage/Core/Block/Template.php(243): include('/home/paparyw/p...')
#19 /home/paparyw/public_html/app/code/core/Mage/Core/Block/Template.php(275): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#20 /home/paparyw/public_html/app/code/core/Mage/Core/Block/Template.php(289): Mage_Core_Block_Template->renderView()
#21 /home/paparyw/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#22 /home/paparyw/public_html/app/code/core/Mage/Core/Model/Layout.php(556): Mage_Core_Block_Abstract->toHtml()
#23 /home/paparyw/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#24 /home/paparyw/public_html/app/code/core/Mage/CatalogSearch/controllers/AdvancedController.php(41): Mage_Core_Controller_Varien_Action->renderLayout()
#25 /home/paparyw/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_CatalogSearch_AdvancedController->indexAction()
#26 /home/paparyw/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#27 /home/paparyw/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))
#28 /home/paparyw/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#29 /home/paparyw/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#30 /home/paparyw/public_html/index.php(85): Mage::run('', 'store')
#31 {main}