$threads = $DB_site->query_first(" SELECT COUNT(threadid) AS total FROM thread WHERE postuserid='$bbuserinfo[userid]'"); $userinfo[threads] = $threads[total];