I have a column in my table called to_user
that the content of it like this:
id to_user
1. 1+2+3
2. 1
my query
select
* from notifications
where (type = 4 and to_user LIKE %+".$user_id."+%)
or (to_user REGEXP +?".$user_id."+? ) and status = 2
but it doesn't work .