SELECT * FROM tabella
WHERE anagrafica = 2
ORDER BY id_img ASC
LIMIT 1