my situation: 1-column.phml
echo $this->getLayout()
->createBlock('catalog/product_list')
->setTemplate('page/html/home-block-top.phtml')
->toHtml();
then home-block-top.phtml
$_productCollection2 = Mage::getResourceModel('reports/product_collection')->addViewsCount();
$_productCollection2->addCategoryFilter( Mage::getModel('catalog/category')->load(87) );
Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($_productCollection2);
Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($_productCollection2);
$_productCollection2->setPageSize(4)->setCurPage(1);
I get this error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'report_table_views.entity_id' in 'on clause'
Someone can help me? Thanks