SQL Code help required

DEViANT

New Member
The code is:
Code:
$varcount=$db->query_first("SELECT COUNT(threadid) AS threads FROM " . TABLE_PREFIX . "post" WHERE forumid in (36, 37, 38, 39, 40, 41, 42, 43, 47, 48));
$counted=number_format($varcount['threads']);

What its supposed to do is count all the threads in those specific categorys... But it doesnt wok. Help anyone? Please
 
Top