Seaquel
SQL Server error code

SQL Server error 5366

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

The function '%.*ls' must have an OVER clause or a WINDOW with ORDER BY.
Msg5366
Severity15
Group5000–5999

Source: Database Engine events and errors