Query based on multiple keywords
You want db_or().

$or = db_or()-&gt;condition('n.title', '%' . db_like('second') . '%', 'LIKE')-&gt;condition('n.title', '%' . db_like('title') . '%', 'LIKE');
$results = db_select('node', 'n')
  -&gt;fields('n')
  -&gt;condition($or)
  -&gt;execute()
  -&gt;fetchAll();