/**
  * Get select for all products
  *
  * @param $store
  * @return Varien_Db_Select
  */
 protected function _getAllProducts(Mage_Core_Model_Store $store)
 {
     $select = parent::_getAllProducts($store);
     return $select->where($store->getRootCategoryId() . ' IN (?)', $this->_limitationByCategories);
 }
 /**
  * Get select for all products
  *
  * @param $store
  * @return Varien_Db_Select
  */
 protected function _getAllProducts(Mage_Core_Model_Store $store)
 {
     $select = parent::_getAllProducts($store);
     return $select->where('cp.entity_id IN (?)', $this->_limitationByProducts);
 }