select tiger_redirect.id, tiger_redirect.sid, tiger_redirect.entry_point as entry, tiger_redirect.redirect_point as exit_point, tiger_redirect.pid from tiger_redirect where tiger_redirect.sid = '97' and tiger_redirect.entry_point like '%tanzania's-safari-history-zanzibar%' - 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-safari-history-zanzibar%'' at line 12