SELECT bus.*, bus_man.name AS man_name, currency.name AS currency_name FROM bus, bus_man, currency WHERE currency_id = currency.id AND model LIKE '%Lion's Coach%' AND bus.id != "2909" AND man_id = bus_man.id AND man_id = "75" AND condition_id = 1 ORDER BY datetime DESC LIMIT 20
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 's Coach%' AND bus.id != "2909" AND man_id = bus_man.id AND ...' at line 11