codice:
select n.*,c.categoria,f.percorsofoto
from news as n
left join foto as f on n.idfoto = f.id
left join categorie as c on c.id = n.idcat