NOT IN(...) не работает SELECT id FROM dbname WHERE id NOT IN(SELECT exclusion FROM exclude) может еще как можно?