You most likely using MCCodes.
$db->fetch_array does not exist. I presume that is meant to be mysql_fetch_array.
In MCCodes V2, mysql_fetch_array = $db->fetch_row
echo "<table width='100%' cellspacing='1' class='table'><tr style='background:gray'><th colspan='2'>Users Comments
<a href='comments.php?ID={$r['userid']}'>[Add Comment]</a></th>";
if($ir['userid'] == $r['userid'] || $ir['user_level'] > 1)
{
echo "<th width='10%'>Delete</th>";
}
echo "</tr>";
$query = $db->query("SELECT * FROM `comments` WHERE `cmtTO`={$r['userid']} ORDER BY `cmtTIME` DESC limit 5", $c) or die($db->error());
while($cmnt = $db->fetch_row($query));
{
$they=$db->query("SELECT `userid`, `username` FROM `users` WHERE `userid`={$cmnt['cmtFROM']}",$c);
$them=$db->fetch_row($they);
$sent=date('F j, Y, g:i:s a',$cmnt['cmtTIME']);
echo "<td width='25%'><b>{$them['username']} [{$them['userid']}]</br></br></b>$sent</td><Td>{$cmnt['cmtTEXT']}</td>";
if($ir['userid'] == $r['userid'] || $ir['user_level'] > 1)
{
echo "<td width='10%'><a href='comments.php?action=delete&ID={$cmnt['cmtID']}'>Delete</a></td>";
}
echo "</tr>";
}
echo "</table>";
Try that out.