This should be `&&` instead of `AND`. The latter has a different precedence that can be confusing to work with.