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