You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's kingdom' OR `keyword2` LIKE 'lady karame's kingdom' OR `keyword3` LIKE 'lady k' at line 1 - SELECT * FROM `ab_posts` WHERE `datetime` < NOW() AND ( `keyword1` LIKE 'lady karame's kingdom' OR `keyword2` LIKE 'lady karame's kingdom' OR `keyword3` LIKE 'lady karame's kingdom' OR `keyword4` LIKE 'lady karame's kingdom' OR `keyword5` LIKE 'lady karame's kingdom' OR `keyword6` LIKE 'lady karame's kingdom' OR `keyword7` LIKE 'lady karame's kingdom' OR `keyword8` LIKE 'lady karame's kingdom' OR `keyword9` LIKE 'lady karame's kingdom' OR `keyword10` LIKE 'lady karame's kingdom' ) ORDER BY `datetime` DESC