Recent comments per tagged post?

As Konstantin Kovshenin pointed out in this article, you can get the comments for a specific Category like that:

<?php
$show_comments = 10;
$i = 0;
$comments = get_comments("number=50&status=approve");
foreach ($comments as $comment)
{
    $comm_post_id = $comment->comment_post_ID;
    if (!has_term( 'XYZ', $comm_post_id );)
        continue;
    $i++;

    // Output the comment, author and whatever you need
    // I'll just output the comment excerpt to keep my code simple
    ?><li><?php comment_excerpt(); ?></li><?php

    if ($i >= $real_comments) break;
}
?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)