select photo_id from santarelli_photo where photo_type = 'affaire' and produit_id = 664〈=fr order by photo_prio limit 0,1