mysqli_sql_exception thrown

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 's Birthday Party' OR ter.name = 'EMS 50 år' OR ter.name = 'Gordon Monahan' O...' at line 18