GROUP BY categories.id fakat select categories.*