Hey, I'm trying to setup a modification for my forum, but I'm getting this message:
Fatal error: Call to a member function on a non-object in /home/******/public_html/forum/topposters.php on line 49
Line 49 is the following:
$data[$col] = $DB_site->query("
And it's trying to do this:
$data[$col] = $DB_site->query("
SELECT COUNT(post.dateline) AS postcount, post.userid, user.username
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (post.userid = user.userid)
WHERE dateline > $start[$col] AND user.usergroupid IN ($groups)
GROUP BY userid ORDER BY postcount DESC LIMIT 10
");
The thing I don't really understand is, line 49 ($data[$col] = $DB_site->query(") also appears on line 40, but it does not stop on that line. Can someone please provide me with some help! :queasy: