Selection Error 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 tc.blog_category_title ASC' at line 1
[Select td.blog_id, td.blog_post_status, td.blog_allow_comments, td.blog_category_id, td.blog_post_content, td.blog_post_title, td.blog_syndicate, DATE_FORMAT(td.blog_post_pub_date, '%M %d, %Y %h:%i:%s') AS blog_post_pub_date, MONTH(td.blog_post_pub_date) as month, YEAR(td.blog_post_pub_date) as year, tc.blog_category_title FROM tbl_blog_post_data td,tbl_blog_categories tc WHERE td.blog_category_id = tc.blog_category_id and tc.blog_category_id= ORDER BY tc.blog_category_title ASC]