Codice PHP:
$query = "SELECT tabella_prodotti.id AS id, tabella_prodotti.descrizione AS descrizione, tabella_prodotti.prezzo AS prezzo, tabella_categoria.nome_categoria AS nome_categoria FROM tabella_prodotti INNER JOIN tabella_categoria ON tabella_prodotti.id=tabella_categoria.id"