I have two tables:
places:
id = unique, key
name = place name
neighborhood = neighborhood of the place
city = city of the place
country = country of the place
flags:
id = unique, key
Currently I am running a query on the places table:
SELECT * FROM places WHERE (neighborhood="" OR city="" OR country="") LIMIT 5;
How can I modify my query to exclude any rows with their id on the flags table?