diff --git a/modules/Bio/EnsEMBL/Registry.pm b/modules/Bio/EnsEMBL/Registry.pm index 34d129ad024c36c5590189ee846168cbc2503ea1..0fb2f51930cf6878cf0070a771b86c54ef097c32 100644 --- a/modules/Bio/EnsEMBL/Registry.pm +++ b/modules/Bio/EnsEMBL/Registry.pm @@ -1264,7 +1264,7 @@ sub load_registry_from_db { foreach my $multidb (@multi_dbs) { my $sth = $dbh->prepare( - sprintf( 'SELECT species_id, meta_value FROM %s.species_meta ', + sprintf( 'SELECT species_id, meta_value FROM %s.meta ', $dbh->quote_identifier($multidb) ) . "WHERE meta_key = 'species.db_name'" ); $sth->execute();