Search Builder fails with an error when searching for State if the location type differs from the display name.
To reproduce on the dmaster.
- Goto https://dmaster.demo.civicrm.org/civicrm/admin/locationType?reset=1
- Change the name of Other (nr 4) to other.
- Start the search builder.
- Create the following search
- The search ends with a DB Error - Syntax Error