We've all accidentally called or texted the wrong person. But an errant text has landed a local man in jail on drug charges.

In a news release, SPD says Corey Michael Hunt, 20, texted who he thought was a friend to "announce the availability of controlled substances for sale." SPD says the text instead went to a narcotics officer who relayed the information to Springfield PD.

Springfield PD then responded to the text, offering to buy the drugs. Hunt allegedly sold an officer five 10mg Diazepam pills.

Because the sale happened next to a church, Hunt is being charged with sale of a controlled substance within 1000 feet of a church as well as two counts of possession of a controlled substance with intent to distribute. Officers reportedly found 67 acetaminophen/codeine tablets and 9 more Diazepam 10mg tablets.

Hunt was taken to the Bay County Jail.