I have this very simple query:
SELECT * FROM "orders" WHERE "printer_id" = 'AC001' AND "sent" = '0'
It throws the following error:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"orders" WHERE "printer_id" = 'AC001' AND "sent" = '0' at line 1
Removing the "" from the column names makes it work! Im using Medoo (http://medoo.in/) as my database framework if that helps.