title: Compare two list items
body: <p>I am trying to compare a database field which stores list items (comma separated) with unfortunately a variable which is also a list item.</p>
  
  <p><strong>Example:</strong></p>
  
  <p>In this case, a user can belong to multiple groups, and content access is also allocated to multiple groups.</p>
  
  <pre><code>contentid | group  
   (1)   (c,d)   
   (2)   (a,c)  
   (3)   (b)
  </code></pre>
  
  <p>So, I need to select all content where user is in group (a,c). In this case, contentid 1,2 should be returned.</p>