how to place a link on the first post only using a plugin

Just remove the filter when it is called the first time:

function add_link($link)
{
    // this will guarantee the filter will not be called again.
    remove_filter( current_filter(), __FUNCTION__ );
    return $link . '<a href="http://site.com">Link</a>';
}

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