I\'m having a problem selecting strings from database. The problem is if you have McDonald\'s in row and if you are searching with a string mcdonalds i
McDonald\'s
mcdonalds
Escape your special characters.
SELECT * FROM restaurants WHERE name='McDonald\'s';