Runners Expected

Notice: Undefined index: table_name in /home/linweb52/h/ : eval()'d code on line 27

Notice: Undefined variable: control_race_number in /home/linweb52/h/ : eval()'d code on line 167
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 '= gw_competitors.race_number) AS v_class FROM ORDER BY race_number' at line 1