The only solution I could find for this was to save my two values as post_meta, then use this code:
$args = array(
'post_type' => 'POST_TYPE_HERE',
'post_status' => 'active',
'update_post_term_cache' => false, // don't retrieve post terms
'meta_query' => array(
'relation' => 'and',
array(
'key' => 'META1_NAME',
'value' => $order_id,
'compare' => '=',
),
array(
'key' => 'META2_NAME',
'value' => $product_id,
'compare' => '=',
)
)
);
$posts_array = new WP_Query($args);