After Ahithophel came Jehoiada, son of Benaiah and Abiathar. Joab was the commander of the royal army.