It is difficult for ordinary users to find these obvious errors.
I look at the original code every time I try a function.
No one found that I can't be the first one?
$dbh->do_placeholder_query($query, array($html->get_date()), __LINE__, __FILE__);
while (list($userid, $groupid, $sub_name) = $dbh->fetch_array($sth)) .....
Already very obvious missed...
As you open the original php file, you can see what it is.... miss '$sth = '