ok, the query is better. group by M.id, order by M.gid
this brings the mods in a group together in the output