you are going about this the wrong way.
you should not create a many to many relationship by storing a comma separated list of key in the main table, this is not a very good database structure.
instead, you should use a linking table. you can then use the manage relational table behavior to results to the categories.
see the "Managing Relational Tables in Data Bridge" tutorial on the Data Bridge support page for details:
data-bridge/