While select table1 where table1.itemid == table2.itemid && (table2.feature == tmp1 || table2.feature == tmp2 ...)