The error “Column is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause” appears when a query uses ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results