active link for most recent post on vertical tabs

WP_Query provides current_post property inside the loop which starts from 0. So if you want to target first post in the loop you should just check if $the_query->current_post equals 0:

if ( $the_query->current_post == 0 ) {
 echo 'is_active';
}

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