title: How to group 'like' with Codeigniter active records?
body: <p>I'm building a search form with multiple options. The idea is to look for people with certain characteristics like career, name of last company job, years of experience, etc.</p>
  
  <p>In the first part of the form you can enter a career you would like candidate to have, on second part you can enter one or more companies name. What I want is my query to look something like this:</p>
  
  <pre><code>SELECT *
  FROM work_experience
  WHERE position = 'some position'
  AND (company LIKE 'company 1' OR company LIKE 'company 2', etc)
  </code></pre>
  
  <p>Problem is I don't know hoy many company names the user might enter, what I do is store every name in an array which I don't know how big it may be.</p>
  
  <p>I tried using or_like() active record, but the problem was that it looked for people with 'positionx' OR people working at 'company x' which is not the result I want.</p>
  
  <p>Is there a way to make this query using active records? Or even how can I make the query in simple SQL if I don't know the exact number of company names I'm searching for.</p>
  
  <p>Thank you for your time and help, if something was not clear please let me know.</p>