title: MySQL select query comma separated numbers filter result
body: <p>My table look like this:</p>
  
  <p><a href="https://i.stack.imgur.com/qgGL2.png" rel="nofollow noreferrer">Table screenshot</a></p>
  
  <p>Here I'm getting the result by query:</p>
  
  <pre><code>$subject_ids = implode(',', $_POST['subject_ids'])
  
  SELECT * FROM table WHERE focusarea LIKE '%$subject_ids%' ;
  </code></pre>
  
  <p>The result is perfect, but there is nothing to display when I select more than one subject ids, like if selecting only one then it shows,
  but when to select 1, 2, and 4, but there is nothing with this LIKE query...</p>
  
  <p>How can I fix this?</p>