MySQL Query : SELECT * FROM `rms`.`v9_attachment_media` WHERE news_id= and catid= and convertstate in (0,3) and mediaformat=0 GROUP BY title asc LIMIT 1 MySQL 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 'and catid= and convertstate in (0,3) and mediaformat=0 GROUP BY title asc LIMIT ' at line 1 MySQL Errno : 1064 Message : 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 catid= and convertstate in (0,3) and mediaformat=0 GROUP BY title asc LIMIT ' at line 1 Need Help?