Fatal error: Uncaught mysqli_sql_exception: 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 '%'' at line 1 in D:\inetpub\webs\enduranceonlineit\db\db_horses.php:128 Stack trace: #0 D:\inetpub\webs\enduranceonlineit\db\db_horses.php(128): mysqli->query() #1 {main} thrown in D:\inetpub\webs\enduranceonlineit\db\db_horses.php on line 128