If a variable contains a ', it will throw a mysqlsyntaxerror exception when attempting to execute a statement. 
Is there a simple way around this, or whether you must write a method removing all characters that may interrupt the statement and put each variable through it before executing?
 
    