: SELECT * FROM texts LEFT OUTER JOIN artists ON texts.text_artist_id = artists.artist_id WHERE texts.text_artist_id!='30' and texts.text_title LIKE '%feat%' and texts.text_title LIKE '%N'Pans%'. You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Pans%'' at line 2