Female Laps
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 'AND c.raceID= AND p.male=0 AND c.valid=1 GROUP BY p.personID ORDER BY count DES' at line 3