SELECT car.*, car_man.name AS man_name, currency.name AS currency_name FROM car, car_man, currency WHERE currency_id = currency.id AND model LIKE '%Towncar Limo 120'%' AND car.id != "10249" AND man_id = car_man.id AND man_id = "58" 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 '%' AND car.id != "10249" AND man_id = car_man.id AND man_i' at line 11