SQL problem: SELECT * FROM (SELECT globid,ordine,title FROM globalmoneta WHERE parentid="C-AJULIA" AND ordine<"11" GROUP BY ordine DESC LIMIT 1) AS a;