Column 'id_tipo2' in order clause is ambiguous