title: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1922-1' for key 'IDX_STOCK_PRODUCT'
body: <p>While creating product, at the last step after retrieving for a time, Magento gives following error-:</p>
  
  <blockquote>
    <p>SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1922-1' for key 'IDX_STOCK_PRODUCT'</p>
  </blockquote>
  
  <p>What I am doing is, by capturing product id, I am putting it's entry in custom table. I have connected to Magento database externally.</p>
  
  <p>Surprisingly data is inserted in both Magento's base table &amp; also in Custom table but why it is giving me that error after product saving...?</p>
  
  <p>I cleared cache, browser cookies.
  Also remove /var/cache, /var/session.
  still giving error.
  Can anybody suggest a solution?</p>