How can I write update query with where, in and not in condition. I tried this one but it's not working properly. It updates all rows in a table. Not only working for mentioned rows but also all rows.
$postval=('2,4,5,7');
$netchk=TblNetwork::updateAll(['status' => 0],['AND',
'status = 1', ['NOT IN', 'network_id_pk', $postval]
]);