As a point, the situation at Immigration is so bad that they ask you for details they have when you are applying for a passport. The passport is so unreliable that some banks do not accept it in place of your National ID, or even when opening a new bank account.
Several passport numbers can be linked to one ID (standard procedure), however, a valid passport can be linked to the wrong ID (irregularity)