Attaching author tag to the comment

you can compare user_id to the author id, an then add your text.

global $post;
if ( $comment->user_id === $post->post_author ) { echo 'Author'; }

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