SELECT 
  pfv.feature_id, 
  pfv.product_id, 
  pfv.variant_id, 
  fv.position, 
  fvd.variant 
FROM 
  cscart_product_features_values AS pfv 
  INNER JOIN cscart_product_feature_variants AS fv ON pfv.feature_id = fv.feature_id 
  AND pfv.variant_id = fv.variant_id 
  INNER JOIN cscart_product_feature_variant_descriptions AS fvd ON pfv.variant_id = fvd.variant_id 
  AND fvd.lang_code = 'ar' 
WHERE 
  pfv.feature_id IN (766, 656) 
  AND pfv.product_id IN (
    8483, 2459, 2432, 2455, 2438, 8484, 8485, 
    8488, 8486, 8492, 8487, 8489, 2465, 
    8490, 8491, 8493, 2441, 8478, 8474, 
    8475, 10226, 10294
  ) 
  AND pfv.lang_code = 'ar'

Query time 0.00368

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "26.24"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "pfv",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "variant_id",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "idx_product_feature_variant_id",
          "used_key_parts": [
            "product_id",
            "feature_id",
            "lang_code"
          ],
          "key_length": "12",
          "rows_examined_per_scan": 45,
          "rows_produced_per_join": 45,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "5.20",
            "eval_cost": "4.50",
            "prefix_cost": "9.70",
            "data_read_per_join": "34K"
          },
          "used_columns": [
            "feature_id",
            "product_id",
            "variant_id",
            "lang_code"
          ],
          "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`feature_id` in (766,656)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`product_id` in (8483,2459,2432,2455,2438,8484,8485,8488,8486,8492,8487,8489,2465,8490,8491,8493,2441,8478,8474,8475,10226,10294)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`lang_code` = 'ar'))"
        }
      },
      {
        "table": {
          "table_name": "fv",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY",
            "feature_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "variant_id"
          ],
          "key_length": "3",
          "ref": [
            "softwarepirmam_hewadelivard_cscart_4.pfv.variant_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 2,
          "filtered": "5.00",
          "cost_info": {
            "read_cost": "11.25",
            "eval_cost": "0.23",
            "prefix_cost": "25.45",
            "data_read_per_join": "2K"
          },
          "used_columns": [
            "variant_id",
            "feature_id",
            "position"
          ],
          "attached_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`fv`.`feature_id` = `softwarepirmam_hewadelivard_cscart_4`.`pfv`.`feature_id`)"
        }
      },
      {
        "table": {
          "table_name": "fvd",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "variant_id",
            "lang_code"
          ],
          "key_length": "9",
          "ref": [
            "softwarepirmam_hewadelivard_cscart_4.pfv.variant_id",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 2,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.56",
            "eval_cost": "0.23",
            "prefix_cost": "26.24",
            "data_read_per_join": "6K"
          },
          "used_columns": [
            "variant_id",
            "variant",
            "lang_code"
          ]
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id position variant
656 2432 1560 0 Black
766 2432 8553 90 75"
656 2438 1560 0 Black
766 2438 8551 30 50
656 2441 1889 0 Dark Gray
766 2441 8553 90 75"
656 2455 1889 0 Dark Gray
766 2455 8553 90 75"
656 2459 1560 0 Black
766 2459 8558 70 65"
656 2465 2077 0 Grey
766 2465 8558 70 65"
656 8474 1889 0 Dark Gray
766 8474 8557 40 55"
656 8475 1889 0 Dark Gray
766 8475 8558 70 65"
656 8478 2077 0 Grey
766 8478 8557 40 55"
656 8483 1560 0 Black
766 8483 8560 20 43"
656 8484 1560 0 Black
766 8484 8557 40 55"
656 8485 1560 0 Black
766 8485 8558 70 65"
656 8486 1889 0 Dark Gray
766 8486 8560 20 43"
656 8487 1889 0 Dark Gray
766 8487 8557 40 55"
656 8488 1889 0 Dark Gray
766 8488 8558 70 65"
656 8489 1560 0 Black
766 8489 8557 40 55"
656 8490 1560 0 Black
766 8490 8558 70 65"
656 8491 1560 0 Black
766 8491 8560 20 43"
656 8492 1560 0 Black
766 8492 8551 30 50
656 8493 1560 0 Black
766 8493 8557 40 55"
656 10226 1560 0 Black
656 10294 1560 0 Black