$query_media_alumno = mysql_query("select AVG(nota) from examenes where autor='$alumno' Order by nota desc");