How could I prevent using the same custom loop in a template file when I only need to change one meta_query parameter?

You could define an array $fixture = array ('1st_XI','2nd_XI') and loop through that, like this:

foreach ($fixture as $value) {
  $firstXIFixtures = new WP_Query(array(
  ...
    'value' => $value,
  ...));

  ... the html you use to display the column

}

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