You have to have "p_digits" once for each bind variable in the generated select statement, which contains bind variables ":b1_digits" and ":b2_digits". Even if I had named them the same, you would still need "p_digits" twice. Otherwise, you get an error that not all variables are bound.