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