la query mi sembra molto strana, perchè fai il join sulla stessa tabella???