ieri ero fuso.
bastava un GROUP BY.
grazie!