title: MySQL Query - Check if data row contains a user_id
body: <p>I have a <code>sessions</code> table and what I am trying to do is run a query to check if a certain account is logged in.</p>
  
  <p><img src="https://i.stack.imgur.com/62CqI.png" alt="enter image description here"></p>
  
  <p>My query looks like this:</p>
  
  <pre><code>SELECT id FROM sessions WHERE data LIKE '%4%' 
  </code></pre>
  
  <p>But with a query like that, if the user_id of "14" is logged in, that query will return True.  How do I check to see if a certain number exists and matches exactly?</p>