diff --git a/modules/Bio/EnsEMBL/DBSQL/AnalysisAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/AnalysisAdaptor.pm
index 7093cd4fcf59420752e25c9d64bdcb9daca8dd81..c21f4cc7e5228cf6f87d2350cfb7f7a89e68793a 100755
--- a/modules/Bio/EnsEMBL/DBSQL/AnalysisAdaptor.pm
+++ b/modules/Bio/EnsEMBL/DBSQL/AnalysisAdaptor.pm
@@ -153,7 +153,7 @@ sub fetch_all_by_feature_class {
         return [] );
 
   my $sql_t = qq|
-SELECT DISTINCT a.analysis_id FROM %s |;
+SELECT DISTINCT analysis_id FROM %s |;
   
   my $sql = sprintf( $sql_t, $feat_table );
   my $sth = $self->prepare( $sql );