Emilie
New Contributor II

I got this error when I was running a query given to me, and the author didn't have aliases on aggregates. Something like:

sum(dollars_spent)

needed an alias:

sum(dollars_spent) as sum_dollars_spent