title: Exclude main image from Magento product gallery
body: <p>I need to update my database of products to mark the "base" image of every product as Excluded. Some products have 1 image, some have more than 1. In each case one image is marked as being the Base, Small and Thumb image. In every case, where an image is marked as such, I need it to be excluded from the gallery.</p>
  
  <p>Currently, without it being excluded, that image will show up twice in the lightbox gallery (Magento 1.4.0.1).</p>
  
  <p>Does someone know the database structure well enough to give me a mySQL solution to update this?</p>
  
  <p>I can manage future new products easily enough, but there's no way I'm running through 22000 products manually! :-)</p>
  
  <p>Thanks in advance!</p>