MySQL Forums
Forum List  »  PHP

Re: MySQL syntax error - don't get it!
Posted by: Henrique Garcia
Date: August 17, 2026 02:18PM

Hi, Gregary!
How are you?

Which version are you currently using?

In versions 8.0 and later, the term RANK is reserved; consequently, the parser interprets "rank" as part of the SQL language rather than as a column name.

Try using this format:
SELECT *
FROM millhouse_db.sponsors
WHERE type = 'funding'
ORDER BY `rank`;

Options: ReplyQuote


Subject
Written By
Posted
Re: MySQL syntax error - don't get it!
August 17, 2026 02:18PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.