Eng 6553 group by alias

Waiting for Jenkins...
Do you get a reasonable error if you "SELECT 1 as sp, ... GROUP BY sp;"?
if you "SELECT count(*) + 1 as sp, ... GROUP BY sp;"?