Do you have an apostrophe or single quote of some sort in your text? If you do then you need to use addslashes otherwise sql complains.
My guess is that you have something like "they're" right there and the string is trying to close at the apostrophe rather than at the end of the string where you expect it to.