SELECT 
  pfv.variant_id, 
  pfv.position, 
  pfvd.variant 
FROM 
  cscart_product_feature_variants AS pfv 
  INNER JOIN cscart_product_feature_variant_descriptions AS pfvd ON pfv.variant_id = pfvd.variant_id 
  AND pfvd.lang_code = 'ar' 
WHERE 
  pfv.variant_id IN (
    1559, 1564, 1563, 1560, 1641, 2903, 1596, 
    1653, 1562, 2907, 2908, 2910, 1597, 
    2919, 1684, 1561, 2870, 1687, 1600, 
    2758, 1599, 1598, 2441, 2984, 2985, 
    1607, 1609, 1595, 1587, 1526, 1592
  )

Query time 0.00110

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "32.56"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "pfv",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "variant_id"
          ],
          "key_length": "3",
          "rows_examined_per_scan": 31,
          "rows_produced_per_join": 31,
          "filtered": "100.00",
          "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`variant_id` in (1559,1564,1563,1560,1641,2903,1596,1653,1562,2907,2908,2910,1597,2919,1684,1561,2870,1687,1600,2758,1599,1598,2441,2984,2985,1607,1609,1595,1587,1526,1592))",
          "cost_info": {
            "read_cost": "18.61",
            "eval_cost": "3.10",
            "prefix_cost": "21.71",
            "data_read_per_join": "35K"
          },
          "used_columns": [
            "variant_id",
            "position"
          ]
        }
      },
      {
        "table": {
          "table_name": "pfvd",
          "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": 31,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "7.75",
            "eval_cost": "3.10",
            "prefix_cost": "32.56",
            "data_read_per_join": "93K"
          },
          "used_columns": [
            "variant_id",
            "variant",
            "lang_code"
          ]
        }
      }
    ]
  }
}

Result

variant_id position variant
1526 60 8GB
1559 0 White
1560 0 Black
1561 10 128GB
1562 20 256GB
1563 30 512GB
1564 40 1TB
1587 80 12GB
1592 90 16GB
1595 0 Yellow
1596 0 Green
1597 0 Lavender Purple
1598 0 Frost Blue
1599 0 Midnight Black
1600 0 Blue
1607 0 Silver
1609 0 Purple
1641 0 Silver Chrome
1653 0 Titan Grey
1684 40 4GB
1687 7 64GB
2441 0 Coral Green
2758 0 Gold
2870 30 3GB
2903 0 Liquid Silver
2907 0 Titan Black
2908 0 Titan Blue
2910 0 Lemon Green
2919 0 Jade Green
2984 0 Ocean Blue
2985 0 Aurora Purple