2 Chronicles 22:1

1 And the inhabitants of Jerusalem cause Ahaziah his youngest son to reign in his stead, (for all the elder had the troop slain that came in with the Arabians to the camp,) and Ahaziah son of Jehoram king of Judah reigneth.

2 Chronicles 22:1 Meaning and Commentary

2 Chronicles 22:1

And the inhabitants of Jerusalem made Ahaziah his youngest
son king in his stead
He being the only surviving one of the sons of Jehoram, the same with Jehoahaz, ( 2 Chronicles 21:17 ) who was saved when the rest were taken captive and slain, by his mother Athaliah, and he made his escape, and that she also escaped is clear from ( 2 Chronicles 22:10 )

for the band of men that came with the Arabians to the camp;
that is, of the Philistines, ( 2 Chronicles 21:16 ) , which band seems to be a band or company of thieves and robbers, as the Septuagint, cruel and barbarous, as the action ascribed to them shows:

[for they] had slain all the eldest;
sons of Jehoram; the Philistines and Arabians only carried them away captives, but those slew them in cold blood:

so Ahaziah the son of Jehoram king of Judah reigned;
being declared his successor by the inhabitants of Jerusalem.

2 Chronicles 22:1 In-Context

1 And the inhabitants of Jerusalem cause Ahaziah his youngest son to reign in his stead, (for all the elder had the troop slain that came in with the Arabians to the camp,) and Ahaziah son of Jehoram king of Judah reigneth.
2 A son of twenty and two years [is] Ahaziah in his reigning, and one year he hath reigned in Jerusalem, and the name of his mother [is] Athaliah daughter of Omri;
3 he also hath walked in the ways of the house of Ahab, for his mother hath been his counsellor to do wickedly.
4 And he doth the evil thing in the eyes of Jehovah, like the house of Ahab, for they have been his counsellors, after the death of his father, for destruction to him.
5 Also, in their counsel he hath walked, and goeth with Jehoram son of Ahab king of Israel to battle against Hazael king of Aram, in Ramoth-Gilead, and they of Ramah smite Joram;
Young's Literal Translation is in the public domain.