Comments - WHERE usage in MariaDB
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.
Please do not build queries like this. It is error prone and unsafe. Instead use prepared statements. This looks to be PHP so you should do something like
This code is safe from injections and easily shows the query. When you did it your way, you added an extra comma which was not as easily seen.
Well spoted! Thanks Brian :)