A frist edition Harry Potter book has sold at auction in Edinburgh for more than £45,000. 

JK Rowling's Harry Potter and the Philosopher's Stone was one of just 500 printed in 1997 after fears that it wouldn't sell big. It has since gone on to become one of the most sold books in history and was sold in the city it was largely written. 

It features a spelling error of 'Philospher' on it while '1 wand' is listed twice in a list of the equipment the main character needed on page 53. 

It was expected to fetch between £40k and £60k at auction and was eventually sold for £45,201 at the Lyon and Turnbull auction house. 

READ MORE: Harry Potter first editions among rare books up for auction and could fetch £70,000

The book was acquired by its previous owner two decades ago in Adrian Harrington’s Kensington Church Street shop in London, and is described by auctioneers as being an “excellent copy of the work”.

Upon its release, publishers produced only a small number of copies because of uncertainty about whether or not the book would prove popular.

The series, which includes seven books that were adapted into blockbuster movies, went on to become one of the most beloved in the world.

Alongside the first book, the lot, which came from an American collector, also featured a 1998 first edition copy of Harry Potter And The Chamber of Secrets, which sold for £7,560, and an early 1997 edition of Harry Potter And The Philosopher’s Stone which contains a note written by Rowling to the previous owner.

Other high-value items included a copy of Casino Royale, the first novel in the James Bond spy series, which features an inscription by author Ian Fleming.

It is inscribed by the author to Ion Smeaton Munro, Fleming’s night editor at Kemsley Newspapers, which was the then owner of The Sunday Times, who was a decorated army officer much in the mould of Bond himself.

The inscription reads: “To I.S.M, who’s [sic] staunch keeping of the night watches freed the author for this extra-mural opus, Ian Fleming, April 1953.”

It was valued between £30,000 and £50,000 and sold for £38,951.

A 1924 first edition of When We Were Very Young by Winnie the Pooh author AA Milne also sold for £15,120 during the auction.

Prior to the sale, Cathy Marsden, head of books and manuscripts at the auctioneers, said: “A first edition of Harry Potter And The Philosopher’s Stone is an exceptionally rare book to find in any condition, and one in such an excellent condition could well be called the jewel in any Harry Potter collector’s crown.

“Given that much of the writing took place in Edinburgh, it’s fitting that this early and important piece of Harry Potter history will be sold in the capital.”

Following the sale, she said she was “delighted” with the results which she feels “show the strength of modern first editions in today’s market”.

“Works by literary giants, such as Ian Fleming and JK Rowling, continue to prove very popular at auction and I hope that these books are much enjoyed and treasured in their new homes,” she added.