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 a.dealer_id = 474 order by mk.make, md.model, a.variant' at line 41