executeAction(); (new \chat\data\user\UserAction([], 'clearDeadSessions'))->executeAction(); $sql = "UPDATE chat1_room_to_user SET active = ? WHERE (roomID, userID) NOT IN (SELECT roomID, userID FROM chat1_session) AND active = ?"; $statement = WCF::getDB()->prepare($sql); $statement->execute([ 0, 1 ]); if ($statement->getAffectedRows()) { \wcf\functions\exception\logThrowable(new \Exception('Unreachable')); } } }