I have accidentally deleted all product from Magento store (1100 items) but few minutes before that I did export all of them to the .csv file what let me to import them back but unfortunately there no single image back.
Is there a way to assign all these images back? I assume images are still in media/product? I have access to MySQL but how to prepare SQL query to reassign those images? I don't have fresh enough backup and this is a live store so I'm quite desperate.