SELECT * FROM articles WHERE lang_id='de' article_title LIKE '%%' OR article_body LIKE '%%' 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 'article_title LIKE '%%' OR article_body LIKE '%%'' at line 1