title: How to search in serialized content
body: <p>I have two tables </p>
  
  <p>Table 1 is: </p>
  
  <pre><code>id | item_id
  ---------------
  1  | a:2:{i:0;s:1:"1";i:1;s:1:"2";}
  </code></pre>
  
  <p>and the second table is: </p>
  
  <pre><code>tag_id | tag
  ------------
  1      | c
  2      | java
  </code></pre>
  
  <p>I have stored the id of table two in table 1 after serialize.  Now  I want to search the tag in table 1 by mysql <code>%like%</code> but the problem is that if I want to search the tag have id 1 or 2 in the item_id it will always find the result even if there is not 1 stored by me but this is stored by the serialize function. Now I want to know what should I do? And any better approach/method will also be appreciated!  </p>