SELECT 
  v.variant_id, 
  v.product_id, 
  vd.variant, 
  vf.position, 
  vf.color 
FROM 
  cscart_product_features_values v 
  LEFT JOIN cscart_product_feature_variant_descriptions vd ON v.variant_id = vd.variant_id 
  AND vd.lang_code = 'en' 
  LEFT JOIN cscart_product_feature_variants vf ON v.variant_id = vf.variant_id 
WHERE 
  1 
  AND v.feature_id = 1329 
  AND v.product_id IN (
    '40679', '40687', '40688', '40689', 
    '40690', '40691', '40692', '40693', 
    '40694', '40695', '40696', '40697', 
    '40698', '40699', '40700', '40701', 
    '40702', '40703', '40704', '40705', 
    '40706', '40707', '40708', '40709'
  )

Query time 0.00137

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "22.09"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "v",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "idx_product_feature_variant_id",
          "used_key_parts": [
            "product_id",
            "feature_id"
          ],
          "key_length": "6",
          "rows_examined_per_scan": 24,
          "rows_produced_per_join": 24,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "2.89",
            "eval_cost": "2.40",
            "prefix_cost": "5.29",
            "data_read_per_join": "18K"
          },
          "used_columns": [
            "feature_id",
            "product_id",
            "variant_id"
          ],
          "attached_condition": "((`cscartdb`.`v`.`feature_id` = 1329) and (`cscartdb`.`v`.`product_id` in ('40679','40687','40688','40689','40690','40691','40692','40693','40694','40695','40696','40697','40698','40699','40700','40701','40702','40703','40704','40705','40706','40707','40708','40709')))"
        }
      },
      {
        "table": {
          "table_name": "vd",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "variant_id",
            "lang_code"
          ],
          "key_length": "9",
          "ref": [
            "cscartdb.v.variant_id",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 24,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "6.00",
            "eval_cost": "2.40",
            "prefix_cost": "13.69",
            "data_read_per_join": "72K"
          },
          "used_columns": [
            "variant_id",
            "variant",
            "lang_code"
          ]
        }
      },
      {
        "table": {
          "table_name": "vf",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "variant_id"
          ],
          "key_length": "3",
          "ref": [
            "cscartdb.v.variant_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 24,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "6.00",
            "eval_cost": "2.40",
            "prefix_cost": "22.09",
            "data_read_per_join": "27K"
          },
          "used_columns": [
            "variant_id",
            "color",
            "position"
          ]
        }
      }
    ]
  }
}

Result

variant_id product_id variant position color
5288 40679 Midnight Black 0 #000000
5288 40687 Midnight Black 0 #000000
5288 40688 Midnight Black 0 #000000
5289 40689 Maroon Red 1 #000000
5289 40690 Maroon Red 1 #000000
5289 40691 Maroon Red 1 #000000
5290 40692 Gold 2 #000000
5290 40693 Gold 2 #000000
5290 40694 Gold 2 #000000
5291 40695 Purple Flame 3 #000000
5291 40696 Purple Flame 3 #000000
5291 40697 Purple Flame 3 #000000
5292 40698 Deepsea Blue 4 #000000
5292 40699 Deepsea Blue 4 #000000
5292 40700 Deepsea Blue 4 #000000
5293 40701 Mint 5 #000000
5293 40702 Mint 5 #000000
5293 40703 Mint 5 #000000
5294 40704 Marble White 6 #000000
5294 40705 Marble White 6 #000000
5294 40706 Marble White 6 #000000
5295 40707 Rose Pink 7 #000000
5295 40708 Rose Pink 7 #000000
5295 40709 Rose Pink 7 #000000