Thai education officials were left red-faced after someone on Twitter discovered that a porn star was gracing the cover of a university math textbook.

According to England's Metro, publisher Muang Thai Book used a screenshot from an X-rated movie starring Japanese porn star Mana Aoki for its Basic Mathematics book.

Last week, Twitter user @T3Thee tweeted a series of images reportedly taken from the marketing campaign for an adult film titled Costume Play Working Girl.

Dr. Chaipruek Serirak, the secretary general of the Vocational Education Commission, told a Thai website that thousands of copies of the textbook were being recalled.

"We will recall the problematic textbooks from every college that purchased them, and we will ship textbooks with new covers to them," Serirak said. "The cover and book design will only use drawings or photos taken by the compilers. There will be no more searching for images on the Internet.