In Harry Potter and the Chamber of Secrets, published in Britain on 2 July 1998, the new teacher of Defence Against the Dark Arts is Gilderoy Lockhart, a celebrity author. He turns out to be a fraud. When he tries to mend Harry’s broken arm, he botches the job and sends Harry to the hospital wing.
J. K. Rowling has said that Lockhart is the only character in the series based on a real person.