Seaquel
SQL Server error code

SQL Server error 4165

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

The score override argument, if present in one of the subqueries, must be present in all subqueries and must be the same constant and variable.
Msg4165
Severity16
Group4000–4999

Source: Database Engine events and errors