query(" SELECT SQL_CALC_FOUND_ROWS ac.AuthorID, a.ArtistID, a.Name, ac.ID, ac.Body, ac.AddedTime, ac.EditedTime, ac.EditedUserID as EditorID FROM artists_group as a JOIN artist_comments as ac ON ac.ArtistID = a.ArtistID WHERE ac.AuthorId = $UserID GROUP BY ac.ID ORDER BY ac.AddedTime DESC LIMIT $Limit; "); $DB->query("SELECT FOUND_ROWS()"); list($Results) = $DB->next_record(); $Pages = Format::get_pages($Page, $Results, $PerPage, 11); $DB->set_query_id($Comments); $GroupIDs = $DB->collect('GroupID'); View::show_header($Title,'bbcode'); $DB->set_query_id($Comments); ?>

next_record()) { $permalink = "artist.php?id=$ArtistID&postid=$PostID#post$PostID"; $postheader = ' on ' . "$ArtistName"; comment_body($UserID, $PostID, $postheader, $permalink, $Body, $EditorID, $AddedTime, $EditedTime); } /* end while loop*/ ?>