Level 16: ERROR in SELECT a.page AS 'ID',a.directory AS 'directory',a.path AS 'path',a.placement AS 'placement',CONCAT(a.path,a.directory) AS 'full_path',b.ID FROM link a LEFT JOIN screen b ON b.ID=a.page WHERE CONCAT(a.path,a.directory)='/what's%20on/eim' AND b.ID<>''. MySQL said: 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 's%20on/eim' AND b.ID<>''' at line 1