Hello,
I have racked my brain and resources on this one. It must be so obvious that I can't see it I have a pretty simple query that deletes records that don't exist in other tables. I am using a UNION after a NOT IN subquery. I am geting a syntax error returned. Can anyone see what is wrong with my syntax:
DELETE FROM
properties_xref_features
WHERE
xref_properties_id NOT IN (
SELECT
xref_properties_id
FROM
properties_new
UNION
SELECT
id
FROM
properties
WHERE
featured = 1
)
THANK YOU!!!
-Sean