Error in the statementselect heading,body,image,id from blog where id=reason--why-ecommerce-website-design-important-.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 'and active='true' order by id' at line 1