I bet your problem is related to the text you trying to insert. I'm more used to perl but the word "I'm" contains an embedded single quote ' and that is probably causing your problem, if I remember correctly, php like perl wants you to precede single quotes, double quotes, or other reserved letters with a backslash \, so change it to
and the same for any other "special characters". Let me know if it helps..