The only way a residue could show up twice in the mmCIF output is if it somehow ended up in two different chains or twice in one chain.