Error in the statementselect heading,body,image,id from blog where id=impact-of-digital-marketing-in-hotel-industry.htm and active='true' order by id i.e. 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 'in-hotel-industry.htm and active='true' order by id' at line 1