I need to check if my comma separated value exists in Database. And my database also storing in comma separated.

My string is saved as "1,2,3,4,5" in database.

My search string is $bloggerscat = "2,5"

I have tried

```
(B.category_id LIKE ('%,$bloggerscat') OR B.category_id LIKE ('%$bloggerscat,%') OR B.category_id = '".$bloggerscat."')

```

Not getting proper result. Please help me.

Advanced thanks...