The word order is actually an SQL keyword. You will have the same problem if you try to use a table named group or select . You can fix this with MySQL using quotation marks around it, line by line:
select f1, f2 from `order` where blah blah blah ...
However, if your table does not have only one order (in this case it will not take so long, since the base business will soon go bankrupt), you will probably need to call your table orders .
This solves both your problems and the one you found and the one you did not :-)
paxdiablo
source share