Hmm dankeschön schonmal, nur jetzt bekomme ich plötzlich diesen Error:
Invalid use of group function
Invalid use of group function
PHP:
mysql_query("Select user.alliance, AVG(SUM(citys.points)/COUNT(user.alliance)) AS emptypoints FROM user LEFT JOIN citys ON user.user = citys.user WHERE user.alliance != '' GROUP BY user.alliance ORDER BY emptypoints DESC", $db)