join where clauses with ' AND ', not ' , '