Show image if a post is featured

You can use the conditional tag, is_sticky() to check whether or not a specific post is a sticky post or not.

You can try the following inside your loop

if( is_sticky() ) {

    //Display your desired image

}

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