The latest novel he wrote is excellent.
-When prepositional objects are relativized, the relative pronoun is either deleted or fronted and the preposition is left behind in speech, whereas in writing the preposition is fronted along with the relative pronoun and must be which (Stauble,1978)
Speech: War and Peace is the book (that) he was referring to.
Writing: War and Peace is the book to which he was referring