Stick with either $dbh->quote($variable) or use placeholders.
In reply to Re^4: Quote mark in string messing up mySQL INSERT by htoug in thread Quote mark in string messing up mySQL INSERT by heezy