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