where not in
tp3.2.3
M('table')->where(['id'=>id])->where(['field'=>['not in',$where]])->delete();
tp5.0
Db::name('table')->where('id',$id)->where('field','not in',$where)->delete();
Db::name('table')->where('id',$id)->whereNotIn('field',$where)->delete();
tp5.1
Db::name('table')->where('id',$id)->where('field','not in',$where)->delete();
Db::name('table')->where('id',$id)->whereNotIn('field',$where)->delete();