Forse postando l' AS che hai usato potresti avere qualche aiuto in più. Però, sempre che abbia capito bene, è strano...