oh, intresting structur
wouldn't it be easier to use query_first instead of fetch_array($DB_site->query....) ?
i think this would be what ya want:
PHP Code:
$last24 = time() - 0;
$threads = $DB_site->query_first("SELECT COUNT(*) as total FROM thread WHERE lastpost < $last24 AND (forumid = '143' OR forumid = '162' OR forumid = '161' OR forumid = '163' OR forumid = '145' OR forumid = '153' OR forumid = '164' OR forumid = '155' OR forumid = '167' OR forumid = '158' OR forumid = '165' OR forumid = '166' OR forumid = '127')");
echo number_format($threads[total]);