A Database Error Occurred
Error Number: 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 'AND short_story!="1" AND sc.category_id=s.category_id Group By s.s' at line 7
(SELECT vtbl.*, image,caption FROM (SELECT s.*, category_name, username, full_name, user_type, info_center, profile_image, s.category_id AS cat_id, sc.cat_type FROM users u, story_category sc, story s WHERE s.delete_status= "1" AND sc.cat_type="re" AND s.jobs_cat="8" AND u.user_id=s.user_id AND s.category_id = AND short_story!="1" AND sc.category_id=s.category_id Group By s.story_id ORDER By s.last_update_date desc) AS vtbl LEFT JOIN story_images ON vtbl.story_id=story_images.story_id GROUP BY story_id ORDER BY story_id DESC ) union (SELECT vtbl.*, image,caption FROM (SELECT s.*, category_name, username, full_name, user_type, info_center, profile_image, s.category_id AS cat_id, sc.cat_type FROM users u, story_category sc, story s WHERE s.delete_status= "1" AND sc.cat_type="re" AND s.jobs_cat="8" AND u.user_id=s.user_id AND s.category_id = AND short_story!="1" AND sc.category_id=s.category_id Group By s.story_id ORDER By s.last_update_date desc) AS vtbl LEFT JOIN story_images ON vtbl.story_id=story_images.story_id GROUP BY story_id ORDER BY story_id DESC )