多嵌套inner join
select * from(( (user as u inner join user_group as ug on u.uid=ug.uid) inner join ugroup as gp on ug.gid=gp.gid) inner join group_module as gm on gp.gid=gm.gid) inner join module m on M.MID=gm.MID