MySQL Query : SELECT COUNT(*) as num FROM v9_download as b, v9_download_data as c WHERE b.status=99 AND b.catid='212' a.catid IN (164,165,166,167,168,169,170,171,172) AND FIND_IN_SET(51,c.relates) AND b.id=c.id 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 'a.catid IN (164,165,166,167,168,169,170,171,172) AND FIND_IN_SET(51,c.relates) ' 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 'a.catid IN (164,165,166,167,168,169,170,171,172) AND FIND_IN_SET(51,c.relates) ' at line 1 Need Help?