I am using this code/query to delete bogus users using a list from 'bogus' table and Obviously this query is not correct and shows error: Unknown column 'bogus.user' in 'where clause' Consider that tables sample and bogus have ONLY ONE COLUMN each and I want to delete rows from sample table only retaining the data of table bogus.
delete from sample where sample.user=bogus.user;