select c.* from channel c inner join groupmap gm on (c.idChannel = gm.idChannel and gm.idGroup =7) order by gm.SortOrder asc
select c.* from Channel c inner join GroupMap gm on (c.idChannel = gm.idChannel and gm.idGroup = 1) order by gm.SortOrder asc