This was an excellent introduction to this topic:
https://en.wikipedia.org/wiki/Fermat%27s_Last_Theorem_(book) by Simon Singh
But I am not sure if the book covers the mistake and later correction. It has been more than a decade since I read the book (and became a fan of the author).