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