SELECT 
  a.modifier, 
  a.modifier_type, 
  a.commercial_dn, 
  a.same_as_option, 
  a.price_overrides, 
  a.base_cost, 
  a.variant_id 
FROM 
  cscart_product_option_variants a 
  LEFT JOIN cscart_ult_product_option_variants shared_option_variants ON shared_option_variants.variant_id = a.variant_id 
  AND shared_option_variants.company_id = 1 
WHERE 
  1 
  AND a.variant_id IN (
    218476, 222844, 222849, 222854, 222859, 
    222862
  )

Query time 0.00047

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "shared_option_variants",
      "access_type": "system",
      "possible_keys": ["PRIMARY", "company_id"],
      "rows": 0,
      "filtered": 0,
      "const_row_not_found": true
    },
    "table": {
      "table_name": "a",
      "access_type": "range",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "3",
      "used_key_parts": ["variant_id"],
      "rows": 6,
      "filtered": 100,
      "attached_condition": "a.variant_id in (218476,222844,222849,222854,222859,222862)"
    }
  }
}

Result

modifier modifier_type commercial_dn same_as_option price_overrides base_cost variant_id
0.000 A 0.00 0 0.00 218476
0.000 A 0.00 0 0.00 222844
0.000 A 0.00 0 0.00 222849
0.000 A 0.00 0 0.00 222854
0.000 A 0.00 0 0.00 222859
0.000 A 0.00 0 0.00 222862