← All errors · Query desk

must appear in the GROUP BY clause or be used in an aggregate

A selected column is neither grouped nor aggregated. Add it to GROUP BY, wrap it in an aggregate (min/max/sum), or drop it from the select list.