Fix: select NULL instead of 'NULL' for softdeletables
Fix: multiple WHERE conditions