database – 503 error with basic join query

I’m trying to do a basic join between two tables but it keeps getting a 503 error

   $database = Drupal::database();

   $query = $database->select('tb1 ', 'tb1')
   ->fields('tb1', ('entity_id', 'language', 'field1', 'field2', 'field3', 'field4'))
   ->condition('language', 'en');

   $query->rightJoin('tb2', 'tb2', 'tb1.entity_id = tb2.entity_id');

  $result = $query->execute();

In Drupal 9… Any idea ? Thanks in advance !