Josiah, King of Judah (640-609 B.C.), was installed as king at the age of eight. Josiah attempted to restore the kingdom of David and was opposed by Pharaoh Necho of Egypt in a battle at Megiddo. The Kings author reports that Josiah was killed there, at Megiddo, then carried dead to Jerusalem, where he was buried. On the other hand, the Chronicles author believed that Josiah was wounded but not killed at Megiddo, and was carried alive to Jerusalem, where he died.
Clearly, both of these authors cannot be right: Josiah cannot have been killed in Megiddo, then carried alive to Jerusalem, where he died again.
Given below are the conflicting Kings and Chronicles accounts of King Josiah's death. Both accounts cannot be true, so at least one of the accounts was not inspired by God and the Bible is errant.
Josiah Was Killed at Megiddo:
29 While Josiah was king, Pharaoh Neco king of Egypt went up to the Euphrates River to help the king of Assyria. King Josiah marched out to meet him in battle, but Neco faced him and killed him at Megiddo. 30 Josiah's servants brought his body in a chariot from Megiddo to Jerusalem and buried him in his own tomb. (2 Kings 23:29-30)
Josiah died in Jerusalem:
23 Archers shot King Josiah, and he told his officers, "Take me away; I am badly wounded." 24 So they took him out of his chariot, put him in the other chariot he had and brought him to Jerusalem, where he died." 2 Chronicles 35:23-24
Joseph F. Alward
"Skeptical Views of Christianity and the Bible"
http://members.aol.com/jalw/joseph_alward.html