Having Trouble Running Query From Shortcode Using Tribe’s Events Plugin

You need to wrap your code in a loop. Instead of if ( $query->have_posts() ) {, use:

while ( $query->have_posts() ) {
    $query->the_post();

    // Rest of code

}

wp_reset_postdata();

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