NET
17 Now the king had placed the officer who was his right-hand man at the city gate. When the people rushed out, they trampled him to death in the gate. This fulfilled the prophet’s word which he had spoken when the king tried to arrest him.
Darby
17 And the king had appointed the captain on whose hand he leaned to have the charge of the gate; and the people trampled upon him in the gate, and he died, according to what the man of God had said, what he had said when the king came down to him.
KJV
17 And the king appointed the lord on whose hand he leaned to have the charge of the gate: and the people trode upon him in the gate, and he died, as the man of God had said, who spake when the king came down to him.