// ##### GET COMMENTS #####
$comments_query = mysql_query ("SELECT * FROM comments LEFT JOIN users ON comments.user_id = users.user_id WHERE comments.file_id = '" . intval($_GET['id']) . "' ORDER BY comments.added LIMIT 10");
while ($comment = mysql_fetch_array ($comments_query))
{
$comment['comment'] = stripslashes ($comment['comment']);
$comment['title'] = stripslashes ($comment['title']);
$comment['added'] = date('F d, Y', $comment['added']);
$comments .= $tpl->pull_template ('comment');
}çalışması lazım..