I'm currently working on an advanced search feature for part of my site. An issue i have faced is when comparing values from a database field list eg. (database field item_sizes can be 1 or 1,4,12,15) and i then have to compare this against a selected list of filtered sizes (1, 12) to see if ANY of those values are present.
In a normal case of one database value i would use
And item_sizes In (#filter_sizes#)
However, all this will do is find a match of the actual LIST, rather than checking each value against filter_sizes
to check for any match at all. Does anyone know how i can do this?
TEMPORARY EDIT
Problem has been solved by using (in my case) SKU's, which allow for unique matching of sizes against the filtered list. A more technical edit will be up later once i have implemented the feature myself.