$query = mysql_query("SELECT * FROM comments WHERE page_id='".$param[1]."'");
$query_profile = mysql_query("SELECT * FROM comments WHERE user_id='".$row['id']."'");
$row_profile = mysql_fetch_assoc($query_profile);
while($row_com = mysql_fetch_assoc($query)) {
$result_com .= '
<div><a href="/profile/'.$row_profile['user_id'].'">'.$row_com['author'].'</a></div>
<div>'.$row_com['comment'].'</div>';
}