Could not get flight scores: 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 ma.id = r.a_id AND mb.id =r.b_id ORDER BY r.score' at line 3