unexpected behaviour of search queries with mixed AND and OR