Ok, suppose that I state it clearly in the project description and the person is content with being a ghost writer. I get the book back, I publish it and everyone is happy.
Then, the ghost writer decides to publish the book himself as well.
Or, the ghost writer sells the exact same book to...