Unable to Execute Query.- (Select categoryname from statecategory,category where statecategory.categoryid=category.categoryid and stateid= order by categoryname asc)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 'order by categoryname asc' at line 1