DISTINCT to GROUP BY u.id in user repository