Oftentimes, other molecules crystalize with the protein and are contained in the PDB file. Sometimes this is intentional (i.e to study the interaction between two molecules), And sometimes it is not (i.e. waters, ions, etc.). Also, be aware that multiple copies of the protein may exist in the file (this happens when more than one protein crystalize in the unit cell). These extraneous molecules will need to be removed from the PDB file in advance. This is most easily done by loading the PDB file up in
VMD and then saving a subset of ions to a new PDB file.