Illegal command warning for group by