How to pass taxonomy terms to WP_Query along with $args?

You can do like following

              $thiscat = $wp_query->get_queried_object();//put this code

              $args = array(
               'post_type' => 'sports',
               'tax_query' => array(
               array(
                 'taxonomy' => 'sports_category',
                 'field'    => 'slug',
                'terms'    => $thiscat->slug // Pass this to slug
           ),
     ),
 );

 $myquery = new WP_Query($args);

then you can able to fetch post titles tagged under football and basketball separately on same page.

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