fix: [group by] error fixed in diagnostics,  fixes #7411
fix: [group by] error fixed in diagnostics,  fixes #7411

SteveClement/MISP,MISP/MISP,MISP/MISP,SteveClement/MISP,SteveClement/MISP,MISP/MISP,SteveClement/MISP,MISP/MISP,SteveClement/MISP,MISP/MISP