title: Search in MySQL - Separated Columns
body: <p>I am trying to create a small script in PHP to get data from a MySQL Database.
  In my database 'companies' is a column called category where i store my the companies' categories in. For example "1|2" or just "2".</p>
  
  <p>Now i want to search for "2" and my database shall return those two entries with the "1|2" and "2" - but that is my problem. 
  I tried it with LIKE % etc. but nothing worked as i hoped. </p>
  
  <p>Does anyone may help me out with my small PHP script?</p>