"Another is to “use SQL libraries that take care of input sanitization for them,” Al-Bassam suggested. This, in short, scrubs any data entered by the user to remove any potential malicious parts of it."
This is bad advice. Some people have apostrophes in their name. Deal with it.
Shameless plug: http://blog.hackensplat.com/2013/09/never-sanitize-your-inpu...