title: Magento (CE 1.3) - Filter productCollection where stock quantity is 0
body: <p><strong>Magento 1.3</strong></p>
  
  <p>I'm trying to filter out of stock items from the productCollection. Using: </p>
  
  <pre><code> -&gt;addAttributeToFilter('status',array('neq' =&gt; Mage_Catalog_Model_Product_Status::STATUS_DISABLED))
  </code></pre>
  
  <p>I can filter by status, but in this store , enabled products can still have 0 quantity. </p>
  
  <p>Using:</p>
  
  <pre><code>-&gt;addAttributeToFilter('qty', array('gt' =&gt; 0))
  </code></pre>
  
  <p>returns a 'qty' is not an attribute error. </p>
  
  <pre><code>$this-&gt;_productCollection = $this-&gt;_productCollection-&gt;addAttributeToSelect('*')
                              -&gt;setStoreId($storeId)
                              -&gt;addStoreFilter($storeId)
                              -&gt;addAttributeToFilter('status',array('neq' =&gt; Mage_Catalog_Model_Product_Status::STATUS_DISABLED))                              
                              -&gt;setPageSize($this-&gt;getToolbarBlock()-&gt;getLimit());
  </code></pre>
  
  <p>Any ideas? Thanks. </p>