Seaquel
MySQL error code

MySQL error 3065

MySQL server error 3065 is ER_FIELD_IN_ORDER_NOT_SELECT, reported with SQLSTATE HY000.

Expression #%u of ORDER BY clause is not in SELECT list, references column '%s' which is not in SELECT list; this is incompatible with %s
Error3065
NameER_FIELD_IN_ORDER_NOT_SELECT
SQLSTATEHY000
GroupServer errors

How to fix it

In other databases

Source: MySQL 8.4 Error Reference