use php not operator in mysql query code example
Example 1: mysql where not equal
DELETE FROM konta WHERE taken <> '';
Example 2: mysql not in list
#filter in MySQL:
WHERE id_field not in ('817','803','495')
DELETE FROM konta WHERE taken <> '';
#filter in MySQL:
WHERE id_field not in ('817','803','495')