Could not make the Query.


SELECT cat.*, f.*, fp.*, t.*, p.*, u.username , th.th_folder FROM categories cat LEFT JOIN forums f ON (cat.cid = f.cat_id) LEFT JOIN forumpermissions fp ON (fp.fpfid = f.fid AND fp.fpugid = ) LEFT JOIN posts p ON (p.post_fid = f.fid AND p.pid IN (0)) LEFT JOIN topics t ON (p.post_tid = t.tid) LEFT JOIN users u ON (p.poster_id = u.id) LEFT JOIN themes th ON (th.thid = f.id_skin) ORDER BY cat.order ASC , f.par_board_id ASC , f.forum_order ASC

MySQL Error No : 1064

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 ') LEFT JOIN posts p ON (p.post_fid = f.fid AND p.pid IN (0)) LEFT JOIN t' at line 6