Googlism is the source of some amusing things but that doesn't mean they are exempt from simple programming mistakes. You shouldn't use user input directly in a database query. If your DB library supports bound variables, use them.
Googlism for: gavin's house
MYSQL Error in query: INSERT INTO googlism (ism,alpha,date,type) VALUES ('gavin's house', 'g', now(), '1') Error: You have an error in your SQL syntax near 's house', 'g', now(), '1')' at line 1