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 5K' AND YEAR(date) = '2011' AND MONTH(date) = '06' ORDER BY pos ASC
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Shoes 5K' AND YEAR(date) = '2011' AND MONTH(date) = '06' ORDER BY pos ASC' at line 1