FATAL ERROR

ERROR: MySQL query error: 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 dealer_external=0 and vehicle_status=0 ORDER BY vehicle_oid desc LIMIT 20' at line 1