title: Magento - Get Category ID's of "In Stock" Items
body: <p>Here is what I have so far, to get IN STOCK items:</p>
  
  <pre><code>$productCollection = Mage::getModel('cataloginventory/stock_item')
                       -&gt;getCollection()
                       -&gt;addQtyFilter('&gt;', 0);
  
  echo $productCollection-&gt;getSelect();
  
  foreach ( $productCollection as $currentProduct ) {
  
      $categoryIds = $currentProduct-&gt;getCategoryIds();
  
      print_r( $categoryIds );
  
  }
  </code></pre>
  
  <p>It gets the products just fine, however I need to get each item's current category ID's, so in the above code <code>$currentProduct-&gt;getCategoryIds()</code> isn't working.</p>
  
  <p>Does anyone has an idea how can I retrieve IN STOCK items along with it's category ID's?</p>
  
  <p>Thank you.</p>