When did the country that produced 1,213,000 (21st) bbl/day join Opec?
create table table_166346_1 (joined_opec varchar, production___bbl__day_ varchar, PRIMARY KEY (joined_opec))
select joined_opec from table_166346_1 where production___bbl__day_ = "1,213,000 (21st)"