Seaquel
SQL Server error code

SQL Server error 1008

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

The SELECT item identified by the ORDER BY number %d contains a variable as part of the expression identifying a column position. Variables are only allowed when ordering by an expression referencing a column name.
Msg1008
Severity15
Group1000–1999

Source: Database Engine events and errors