Expression is missing operator (IS, IS NOT) with null value. 📋

InvalidArgumentException
Toggle Vendor Stack Frames
/var/www/html/portal-cake/vendor/cakephp/cakephp/src/Database/Expression/QueryExpression.php Toggle Arguments
            $operator '!=';
        }
        if ($value === null && $this->_conjunction !== ',') {
            throw new InvalidArgumentException('Expression is missing operator (IS, IS NOT) with `null` value.');
        }
        return new Comparison($expression$value$type$operator);
    }

If you want to customize this error message, create templates/Error/error500.php