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