diff --git a/modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisStatsAdaptor.pm b/modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisStatsAdaptor.pm index fd5a42da7e5acb387f7dc67a497a6777606b3546..87b8f3db51ea7800a703843921b3fff53a6b43d7 100644 --- a/modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisStatsAdaptor.pm +++ b/modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisStatsAdaptor.pm @@ -327,7 +327,7 @@ sub _create_new_for_analysis_id { my $sql; - $sql = "INSERT ignore INTO analysis_stats SET analysis_id='$analysis_id' "; + $sql = "INSERT ignore INTO analysis_stats (analysis_id) VALUES ($analysis_id)"; #print("$sql\n"); my $sth = $self->prepare($sql); $sth->execute();