$sql = select a , b , c from test where (a = :var1 and b = :var2) or (a = :var1 and c = :var3)