Warning: Attempt to read property "hoursID" on null in /home/albahaef/public_html/home/default/race-result.php on line 97

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 'limit 1' at line 1 in /home/albahaef/public_html/rootsystem/apps/siteconfig/database.php:30 Stack trace: #0 /home/albahaef/public_html/rootsystem/apps/siteconfig/database.php(30): mysqli->query('select * from ...') #1 /home/albahaef/public_html/rootsystem/apps/siteconfig/db_object.php(42): Database->query('select * from ...') #2 /home/albahaef/public_html/rootsystem/apps/siteconfig/db_object.php(27): Db_object::find_by_query('select * from ...') #3 /home/albahaef/public_html/home/default/race-result.php(97): Db_object::find_by_id(NULL) #4 /home/albahaef/public_html/home/index.php(21): include('/home/albahaef/...') #5 {main} thrown in /home/albahaef/public_html/rootsystem/apps/siteconfig/database.php on line 30