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

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -