Affects Version/s: 2.0.2
Fix Version/s: 2.0.5
This code doesnt actually appear to be executed anywhere in Moodle so testing is hard. Just verify that the forums still work. Create a forum, post in it then reply to that post.
Pull from Repository:
The following query appears in the function forum_get_participants in /mod/forum/lib.php
$st_ratings = $DB->get_records_sql("SELECT DISTINCT u.id, u.id
WHERE d.forum = ? AND
p.discussion = d.id AND
r.post = p.id AND
u.id = r.userid", array($forumid));
From what I can tell, the ratings table does not exist. There is a rating table, but it does not have a column named post.