append an AND clause to the end of OR clauses