I want to delete customer id where id customer in table order is doesn't exist
DELETE FROM
customers a
WHERE
a.id_customers IN(
SELECT
c.id_customers
FROM
customers c
WHERE
c.id_customers NOT IN (
SELECT DISTINCT
o.customer_id
FROM orders o
)
)
#1064 - 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 'a WHERE a.id_customers IN(SELECT c.id_customers FROM customers c WHERE c.id_cust' at line 1