Mistake with space before group by