title: Magento product save error transactions have not been committed
body: <p>When I'm trying to save a product on a customers magento install using a script I get the following error after calling $product->save();</p>
  
  <pre><code> PHP Fatal error:  Uncaught exception 'Exception' with message 'User Error: Some transactions have not been committed or rolled back
  </code></pre>
  
  <p>For example...</p>
  
  <pre><code>        $_products = Mage::getModel('catalog/product')-&gt;getCollection()-&gt;addAttributeToSelect('supplier')-&gt;AddAttributeToFilter('supplier', $options[$vendor['old_supplier_name']]);
  
      foreach($_products as $product){
  
          $product-&gt;setData('supplier', $options[$vendor['new_supplier_name']]);
          $product-&gt;save();
  
      }
  </code></pre>