Php conditional help needed

This post is related to php
so you should post it in stackoverflow
but as you are a new user .i would help you

<?php if (is_author('2') && (is_single()) ) { ?>
<link rel="author" href="https://plus.google.com/**********"/>
<?php } ?>

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