What’s wrong with my SQL Statement?
SELECT DISTINCT listing_id
FROM listings
WHERE NOT
EXISTS (
SELECT *
FROM images
WHERE images.listing_id = listings.listing_id
)
LIMIT 0 , 30
Any help would be appreciated! I’m trying to show any listing_id numbers in the ‘images’ table that are not in the ‘listings’ table. Help, I’m going nuts!
I’ve tried every combination but still get the MySQL Error 1064. I [...]