2202 Invalid use of constant value

Advantage Error Guide

Constant values, including numeric values and string literal, are not allowed in the ORDER BY or GROUP BY clause of SELECT statement, or in the CREATE INDEX statement. For example, SELECT lastname FROM Employees ORDER BY 'lastname' is not allowed because 'lastname' is a string literal. The correct statement may be SELECT lastname FROM Employees ORDER BY "lastname" or SELECT lastname FROM Employees ORDER BY lastname.