Comments - help
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
Showing the actual SQL query would be a good start in resolving this question. The "near " is a very concrete clue as to where in the SQL syntax the error is. The manual pages are https://mariadb.com/kb/en/select/ and the like depending on which SQL command you are using. Pay attention to the detail.