Jeremiah 37:15

37:15 The officials were very angry at Jeremiah. They had him flogged and put in prison in the house of Jonathan, the royal secretary, which they had converted into a place for confining prisoners.

Jeremiah 37:18

37:18 Then Jeremiah asked King Zedekiah, “What crime have I committed against you, or the officials who serve you, or the people of Judah? What have I done to make you people throw me into prison?

sn The officials mentioned here are not the same as those mentioned in Jer 36:12, most of whom were favorably disposed toward Jeremiah, or at least regarded what he said with enough trepidation to try to protect Jeremiah and preserve the scroll containing his messages (36:16, 19, 24). All those officials had been taken into exile with Jeconiah in 597 b.c. (2 Kgs 24:14).

tn Heb “for they had made it into the house of confinement.” The causal particle does not fit the English sentence very well and “house of confinement” needs some explanation. Some translate this word “prison” but that creates redundancy with the earlier word translated “prison” (בֵּית הָאֵסוּר, bet haesur, “house of the band/binding”] which is more closely related to the concept of prison [cf. אָסִיר, ’asir, “prisoner”]). It is clear from the next verse that Jeremiah was confined in a cell in the dungeon of this place.

tn Heb “What crime have I committed against you, or your servants, or this people that you [masc. pl.] have put me in prison?” Some of the terms have been expanded for clarification and the sentence has been broken in two to better conform with contemporary English style.
The masculine plural is used here because Zedekiah is being addressed as representative of the whole group previously named.