How to add custom Author Info Box to blog posts “only” and NOT custom post templates

Replace line #3 with this if ( is_single() && isset( $post->post_author ) && 'post' == get_post_type() )

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