1064 - 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 '',' ')%7D%7D' order by category_master_name' at line 1

Select category_master_id,category_master_name_identifier,category_master_name,category_master_meta_title,category_master_meta_desc,category_master_meta_keywords,category_master_date,category_master_date1,admin_name,admin_name1,active from category_master Where category_master_name='%7B%7Bdatas41.CategoryName.toLowerCase().replace('%20',' ')%7D%7D' order by category_master_name

Error