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 '.18.'/' and language_id='1' limit 1' at line 1 FOR: SELECT pagecategory_heading from shop_pages_category_description where pagecategory_id=''.18.'/' and language_id='1'