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 'DAM PORT TOWAGE' ORDER BY etatime DESC LIMIT 1000' at line 1SELECT * FROM expected WHERE dest='A'DAM PORT TOWAGE' ORDER BY etatime DESC LIMIT 1000: 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 'DAM PORT TOWAGE' ORDER BY etatime DESC LIMIT 1000' at line 1