This is an example of what my table consists of:
groupCanSee
1
1,2
-1,2
I have then got an array (detailing the groups that that member is a part of), which I have converted into a string - But could be left as an array.
I have tried to use FIND_IN_SET(groupsCanSee, $usersGroups) - But the problem I am of course having, is that the FIND_IN_SET function, can only spot 1 part of a string (e.g. 1 in 1,2) but if I want it to be visible to groups 1 and 4 (FIND_IN_SET('1,4','1,2')) it will not work.
Does anyone have any suggestions on a workaround?