09.07.2018, 18:54
OK, I misunderstood. You need to join them. Again, I can only give examples as you do not post your database structure.
pawn Код:
DELETE FROM users u
INNER JOIN banusers bu ON bu.name=u.name;