sql - MySQL query error with a table named "order" -


I have this problem but I have just got the solution, so I will write it here if anyone stays in it. This is my mysql query:

mysql_query ("Choose ID from order order by id DESC LIMIT 1")

and I got the error

There is an error in your SQL syntax;

The order related to your messaging server version for the right syntax to use the order order 'ORDER ID DESC limit 1' on

Order The word is reserved You must use the command to join the back-tiex.

/ Strong>

Comments

Popular posts from this blog

c# - Roxy file manager in MVC doesn't accept session path -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

java - Ajax call to jsp and jsp redirecting to further jsp -