diff --git a/scripts/zmaudit.pl.z b/scripts/zmaudit.pl.z index df6cf0f60..d4df51cbd 100755 --- a/scripts/zmaudit.pl.z +++ b/scripts/zmaudit.pl.z @@ -279,7 +279,7 @@ do } } - my sql8 = "select distinct EventId from Stats left join Events on Stats.EventId = Events.Id where isnull(Events.Id) group by EventId"; + my $sql8 = "select distinct EventId from Stats left join Events on Stats.EventId = Events.Id where isnull(Events.Id) group by EventId"; my $sth8 = $dbh->prepare_cached( $sql8 ) or die( "Can't prepare '$sql8': ".$dbh->errstr() ); $res = $sth8->execute() or die( "Can't execute: ".$sth8->errstr() ); while( my $stat = $sth8->fetchrow_hashref() )