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 Red Man%' OR dam like '%Dinky's Red Man%') OR (siressire like '%Dinky's ' at line 2