Peace Seyyed Naqvi
It seems you have misunderstood. There are two difference Abdullah’s one of them is the father of Muhammad (the Mahdi) the other Abdullah is the son of the Mahdi.
So he will be Muhammad ibn Abdullah but his kunya will be Abu Abdullah.