SELECT date AS date, race AS race, pos AS pos, g_pos AS g_pos, ag_pos AS ag_pos, ag AS ag, bib AS bib, fname AS fname, lname AS lname, gen AS gen, age AS age, time AS time, city AS city, st AS st FROM roadrunners WHERE race = 'Sailin' Shoes 10K' AND YEAR(date) = '2007' AND ag = 'M25-29' ORDER BY pos ASC
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 'Shoes 10K' AND YEAR(date) = '2007' AND ag = 'M25-29' ORDER BY pos ASC' at line 1