A column reference was specified that is neither a column specified in a GROUP BY clause nor is a column nested in one of the aggregate functions COUNT, MAX, MIN, SUM, AVG, VARIANCE, or STDDEV. The use of the column reference is prohibited because either 1) the GROUP BY clause has been specified, 2) the HAVING clause has been specified, or 3) at least one aggregate function is present.
The SQL query is terminated.
None.