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 = 1330 
  AND v.product_id IN (
    '40580', '40581', '40582', '40583', 
    '40584', '40585', '40586', '40587', 
    '40588', '40589', '40590', '40591', 
    '40592', '40593', '40594', '40595', 
    '40596', '40597', '40598', '40599', 
    '40600', '40601', '40602', '40603'
  )

Query time 0.00142

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "23.00"
    },
    "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": 25,
          "rows_produced_per_join": 25,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "3.00",
            "eval_cost": "2.50",
            "prefix_cost": "5.50",
            "data_read_per_join": "19K"
          },
          "used_columns": [
            "feature_id",
            "product_id",
            "variant_id"
          ],
          "attached_condition": "((`cscartdb`.`v`.`feature_id` = 1330) and (`cscartdb`.`v`.`product_id` in ('40580','40581','40582','40583','40584','40585','40586','40587','40588','40589','40590','40591','40592','40593','40594','40595','40596','40597','40598','40599','40600','40601','40602','40603')))"
        }
      },
      {
        "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": 25,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "6.25",
            "eval_cost": "2.50",
            "prefix_cost": "14.25",
            "data_read_per_join": "75K"
          },
          "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": 25,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "6.25",
            "eval_cost": "2.50",
            "prefix_cost": "23.00",
            "data_read_per_join": "28K"
          },
          "used_columns": [
            "variant_id",
            "color",
            "position"
          ]
        }
      }
    ]
  }
}

Result

variant_id product_id variant position color
5296 40580 6" 0 #000000
5297 40581 7" 1 #000000
5298 40582 8" 2 #000000
5296 40583 6" 0 #000000
5297 40584 7" 1 #000000
5298 40585 8" 2 #000000
5296 40586 6" 0 #000000
5297 40587 7" 1 #000000
5298 40588 8" 2 #000000
5296 40589 6" 0 #000000
5297 40590 7" 1 #000000
5298 40591 8" 2 #000000
5296 40592 6" 0 #000000
5297 40593 7" 1 #000000
5298 40594 8" 2 #000000
5296 40595 6" 0 #000000
5297 40596 7" 1 #000000
5298 40597 8" 2 #000000
5296 40598 6" 0 #000000
5297 40599 7" 1 #000000
5298 40600 8" 2 #000000
5296 40601 6" 0 #000000
5297 40602 7" 1 #000000
5298 40603 8" 2 #000000