I'm so close to getting this work... This is what I have so far:
SELECT posts, userid, username, COUNT(postuserid) as threads, COUNT(referrerid) as referrer FROM user
LEFT OUTER JOIN thread ON postuserid = userid
GROUP BY userid
But the referer isn't returning the correct value. All I need is to get the number of times thier userid is in the referrerid column.