Query Error: 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 ') OR rid in (select race_1_id from `race_race_association` where rac' at line 3
Submitted Query: SELECT * FROM `res_races` as `r` WHERE rid in (select race_2_id from `race_race_association` where race_1_id=) OR rid in (select race_1_id from `race_race_association` where race_2_id=) OR `r`.`rid` = '' ORDER BY `distance` DESC, `slug_assoc` ASC ;