Error 152

Message text

Number in ORDER BY is too large

Item

Value

SQLCode

-152

Constant

SQLE_INVALID_ORDER

SQLState

53005

ODBC State

42000

Probable cause

You have used an integer in an ORDER BY list and the integer is larger than the number of columns in the select list.