SELECT img.fileName FROM image_table AS img JOIN product_table prod ON prod.id = img.prod_id WHERE prod.id = ID_THAT_YOU_WANT