Fix conditions for MultiSelectOptionType
This cleans up the SQL conditions used for searching for users with a specific
selection and fixes the following issues:
- It avoids the use of `escapeString()` in favor of proper prepared statements.
- It avoids the use of `preg_quote()` to escape a regular expression for use in
MySQL, which might not be safe.
- It fixes matching when the options are later reordered, as the saved value is
not being normalized and instead reused the order of the options within the
select.
The generated query does not look great, but is not really worse than the
regular expression either.
In the future it might be possible to migrate this option type to a JSON based
storage and to use `JSON_CONTAINS()`.