Error in query: SELECT *, DATE_FORMAT(content_date, '%W, %M %e, %Y') AS content_date2 FROM content WHERE content_module='general_news' AND content_id='8514\' . 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 ''8514\'' at line 6