The people of Jerusalem appointed Jehoram’s youngest son Ahaziah as their king, because the men from Philistia who had invaded Judah with some Arabs had killed all of Jehoram’s other sons. So Ahaziah started to rule Judah.
Read & study T4T 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