i would like to disable products with no images in Magento 1.8
. I have tried this code:
UPDATE catalog_product_entity_int SET value = 2 WHERE attribute_id = 4 AND entity_id IN ( SELECT entity_id FROM catalog_product_entity_media_gallery RIGHT OUTER JOIN catalog_product_entity ON catalog_product_entity.entity_id = catalog_product_entity_media_gallery.entity_id WHERE catalog_product_entity_media_gallery.value is NULL );
but i have this alert:
Column 'entity_id' in field list is ambiguous
How can i resolve?
Thanks!