diff --git a/app/code/core/Mage/CatalogSearch/Model/Resource/Query/Collection.php b/app/code/core/Mage/CatalogSearch/Model/Resource/Query/Collection.php index cec93d849ac..f0e178ff010 100644 --- a/app/code/core/Mage/CatalogSearch/Model/Resource/Query/Collection.php +++ b/app/code/core/Mage/CatalogSearch/Model/Resource/Query/Collection.php @@ -119,7 +119,7 @@ public function setPopularQueryFilter($storeIds = null) ->distinct(true) ->from( array('main_table' => $this->getTable('catalogsearch/search_query')), - array('name' => $ifSynonymFor, 'num_results', 'popularity') + array('name' => $ifSynonymFor, 'num_results', 'popularity', 'query_id') ); if ($storeIds) { $this->addStoreFilter($storeIds); diff --git a/app/design/frontend/rwd/default/template/reports/product_viewed.phtml b/app/design/frontend/rwd/default/template/reports/product_viewed.phtml index 599fa855bfc..2f7371ebb9e 100644 --- a/app/design/frontend/rwd/default/template/reports/product_viewed.phtml +++ b/app/design/frontend/rwd/default/template/reports/product_viewed.phtml @@ -35,7 +35,7 @@