title: Check if comma separated value exists in Database with PHP
body: <p>I need to check if my comma separated value exists in Database. And my database also storing in comma separated.</p>
  
  <p>My string is saved as "1,2,3,4,5" in database.</p>
  
  <p>My search string is $bloggerscat = "2,5"</p>
  
  <p>I have tried</p>
  
  <pre><code>(B.category_id LIKE ('%,$bloggerscat') OR B.category_id LIKE ('%$bloggerscat,%') OR B.category_id = '".$bloggerscat."')
  </code></pre>
  
  <p>Not getting proper result. Please help me.</p>
  
  <p>Advanced thanks...</p>