title: Make all store images the base, small and thumbnail images in Magento?
body: <p>I have a Magento store that has around 3,000 products. Almost all of these products have a single image attached to it.</p>
  
  <p>For some reason, even though I set the small image and thumbnail image as the same as the base image in the import CSV file, only the base image is set for each product. This means that when you search for a product you get a placeholder - but once you go into the product page you get the correct image. This can be easily remedied by going into the product admin page and selecting the boxes for small image and thumbnail.</p>
  
  <p>The problem is, with 3,000 images this would take quite a long time to do manually. I have found a SQL command that <em>should</em> make all base, small and thumbnail images map the the first image for each product. As I only have one image for each product this should be perfect. However, it doesn't do anything. It says 0 rows changed.</p>
  
  <pre><code>UPDATE catalog_product_entity_media_gallery AS mg,
  catalog_product_entity_media_gallery_value AS mgv,
  catalog_product_entity_varchar AS ev
  SET ev.value = mg.value
  WHERE  mg.value_id = mgv.value_id
  AND mg.entity_id = ev.entity_id
  AND ev.attribute_id IN (70, 71, 72)
  AND mgv.position = 1
  </code></pre>
  
  <p>Does anyone know why this isn't working?</p>
  
  <p>Thanks,</p>
  
  <p>Danny</p>