I have product attribute called 'category_3' with value 'kids' or null.i wanted only those products with an attribute 'category_3' value equals to null.my query is as follows:-
$products = Mage::getModel('catalog/category')->load(40)
->getProductCollection()
->addAttributeToSelect('*')
->addAttributeToFilter('status', 1)
->addAttributeToFilter('visibility', 4)
->setOrder('price', 'ASC');
i had tried following options and i am not getting the products with the category_3 value as null
// ->addAttributeToFilter('category_3',array('NULL' => true))
//->addAttributeToFilter('category_3',array('eq'=>'NULL'))
// ->addAttributeToFilter('category_3','')