Ok, the query i have so far is:
SELECT mods.mid, mtitle, credits, enrl.ayr
FROM stud, smod, mods, enrl
WHERE stud.sid = '154279'
AND stud.sid = smod.sid
AND smod.mid = mods.mid
AND stud.sid = enrl.sid
ORDER BY enrl.ayr DESC
Which basically sorts all of the years in desending order. But from there i dont know how to actually group together xD