Perfect! Exactly what I was looking for, thanks alot!
Had to tweak the code a little tho, or I'd also get the total XP for users who didn't have an alliance, but now it works as it should. :)
The final query is:
SELECT tbluser.uAllID, tblalliance.allName, SUM(tblbase.basXP) AS allXP FROM...