fixed for "GROUP BY `foo`.`bar`"