Replace GROUP BY clause with DISTINCT.