我正在使用以下代码按颜色属性进行过滤,但它给出了空数组
$visibility = array(
Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH,
Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG
);
$cur_category=Mage::getModel('catalog/category')->load($cat_id);
$_productCollection= Mage::getModel('catalog/product')->setStoreId(Mage::app()->getStore()->getId())->getCollection()
->addAttributeToSelect('*')
->addAttributeToFilter('visibility', $visibility);
$_productCollection->addAttributeToFilter('color', 146);
请给我提意见