Código PHP:
@$db_conn = mysql_connect("xxxxx", "xxxxxx", "xxxxx");
@mysql_select_db("xxxxxxxx", $db_conn);
$query = "SELECT count(nombre), sum(pg), sum(pe), sum(pp), sum(gf), sum(gc), sum(puntos) FROM `players` WHERE nombre='Alex';";
$query_alex = mysql_query($query);
$alex = mysql_fetch_array($alex);
echo $alex['pj'];
echo $alex['sum(pj)'];
echo $alex;