Fixed code error. This will now work.
find
PHP Code:
SELECT COUNT(postid) AS ppforum, thread.forumid AS forumid
FROM post
LEFT JOIN thread ON thread.threadid = post.threadid
WHERE userid = '$userinfo[userid]'
GROUP BY (forumid)
DESC LIMIT 1");
replace with
PHP Code:
SELECT COUNT(postid) AS ppforum, thread.forumid AS forumid
FROM post
LEFT JOIN thread ON thread.threadid = post.threadid
WHERE userid = '$userinfo[userid]'
GROUP BY (forumid)
ORDER BY ppforum
DESC LIMIT 1");
I added by ORDER BY so that it will give you the higest post number instead of the forumid T_T