Update Query.php

Made it possible to choose whether the filter is comma-delimited (OR filter) or semi-colon-delimited (AND filter).