$ 0 0 This is what you would be looking for I believe select * from prov_template_def where owning_user_idn = 1