I have been struggling with a small problem for a while. It\'s been there for years but it\'s just been an irritating problem and not a serious one, and I have just worked a
Escape the string :D
http://php.net/manual/en/function.mysql-real-escape-string.php