codice:
SELECT MAX(id) AS max, prodotto  FROM scarico
GROUP BY prodotto
ORDER BY prodotto