"OR" condition in db_select()
That's not correct, the default is AND. To use or, you need to use:

$or = db_or();
$or-&gt;condition();
$or-&gt;condition();
$query-&gt;condition($or);


But the main conditions on the query are definitely joined with AND.