Replace the GROUP BY clause with DISTINCT.