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='169' 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='169' AND b.id=c.id' 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='169' AND b.id=c.id' at line 1 Need Help?