Seaquel
SQL Server error code

SQL Server error 8120

SQL Server raises error 8120 at severity 16, which marks a problem with the query or data that you can correct.

Column '%.*ls.%.*ls' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
Msg8120
Severity16
Group8000–8999

How to fix it

In other databases

Source: Database Engine events and errors