la query che ho fatto e' cosi e semra funzionare ora
Codice PHP:
select from image where cod_rif=$cod_rif order by id ASC LIMIT 1 
sembrerebbe andare voi che ne pensate?