In this article get which product have less then or equal to 5 quantity. In many cases we want to disable product less then any number of quantity. Then we get product by coding. In this code print product sku.
Here is code....
$collection = Mage::getModel('catalog/product')
->addAttributeToFilter('qty', array("lt" => 5));
foreach($collection as $res)
echo $res->getSku() . "<br>";