I am running MySQL 14.14 Distrib 5.7.40 for Linux (x86_64) on my BlueHost VPS. A few months ago I could run this command successfully: I have to go rerun this every few months to avoid this error: Today when I ran that it appeared successful, but the SQL errors remain in my web app: Invalid query: Expression #1 of ORDER