public function fetch_comments($where) { $result = Dbl::qe("select PaperComment.*, firstName reviewFirstName, lastName reviewLastName, email reviewEmail\n from PaperComment join ContactInfo on (ContactInfo.contactId=PaperComment.contactId)\n where {$where} order by commentId"); $comments = array(); while ($c = CommentInfo::fetch($result, $this)) { $comments[$c->commentId] = $c; } Dbl::free($result); return $comments; }