The people of Jerusalem made Ahaziah, Jehoram's youngest son, king in succession to his father, since the invaders who had entered the camp with the Arabians had killed all the older sons. So Ahaziah, son of Jehoram, became king of Judah.
Read & study FBV 22:1And the inhabitants of Jerusalem made Ahaziah his youngest son king in his stead; for the band of men that came with the Arabians to the camp had slain all the eldest. So Ahaziah the son of Jehoram king of Judah reigned.
Read & study ASV 22:1