SELECT 
  f.feature_id, 
  f.purpose, 
  p.product_id, 
  p.parent_product_id, 
  g.id, 
  g.code 
FROM 
  cscart_product_variation_group_features AS f 
  INNER JOIN cscart_product_variation_groups AS g ON f.group_id = g.id 
  INNER JOIN cscart_product_variation_group_products AS p ON f.group_id = p.group_id 
WHERE 
  p.product_id IN (
    5346, 5387, 5309, 5386, 5370, 5369, 5371, 
    5392, 5390, 5372, 11255, 11277, 10956, 
    11280, 11456, 11118, 11131, 10954, 
    11074, 11222, 11102, 11112, 11069, 
    11099
  )

Query time 0.00082

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "35.91"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "p",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "product_id"
          ],
          "key_length": "3",
          "rows_examined_per_scan": 26,
          "rows_produced_per_join": 26,
          "filtered": "100.00",
          "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`p`.`product_id` in (5346,5387,5309,5386,5370,5369,5371,5392,5390,5372,11255,11277,10956,11280,11456,11118,11131,10954,11074,11222,11102,11112,11069,11099))",
          "cost_info": {
            "read_cost": "15.11",
            "eval_cost": "2.60",
            "prefix_cost": "17.71",
            "data_read_per_join": "416"
          },
          "used_columns": [
            "product_id",
            "parent_product_id",
            "group_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "g",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "id"
          ],
          "key_length": "3",
          "ref": [
            "softwarepirmam_hewadelivard_cscart_4.p.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 26,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "6.50",
            "eval_cost": "2.60",
            "prefix_cost": "26.81",
            "data_read_per_join": "10K"
          },
          "used_columns": [
            "id",
            "code"
          ]
        }
      },
      {
        "table": {
          "table_name": "f",
          "access_type": "ref",
          "possible_keys": [
            "idx_group_id"
          ],
          "key": "idx_group_id",
          "used_key_parts": [
            "group_id"
          ],
          "key_length": "3",
          "ref": [
            "softwarepirmam_hewadelivard_cscart_4.p.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 26,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "6.50",
            "eval_cost": "2.60",
            "prefix_cost": "35.91",
            "data_read_per_join": "2K"
          },
          "used_columns": [
            "feature_id",
            "purpose",
            "group_id"
          ]
        }
      }
    ]
  }
}

Result

feature_id purpose product_id parent_product_id id code
656 group_variation_catalog_item 5309 0 590 PV-6B629A41B
656 group_variation_catalog_item 5346 0 1097 PV-5ECB633E2
656 group_variation_catalog_item 10956 0 1048 PV-256C38660
656 group_variation_catalog_item 11069 0 1061 PV-13C7AF299
682 group_variation_catalog_item 11074 0 1062 PV-AFD736DED
656 group_variation_catalog_item 11099 0 1066 PV-BC151A702
656 group_variation_catalog_item 11118 0 1070 PV-17D167FDA
656 group_variation_catalog_item 11131 0 1073 PV-99C077D41
656 group_variation_catalog_item 11222 0 1085 PV-35F6F2926
656 group_variation_catalog_item 11255 0 1088 PV-8C66B7F05
656 group_variation_catalog_item 11277 0 1091 PV-66632824C
656 group_variation_catalog_item 11280 0 1092 PV-5CF92C949
656 group_variation_catalog_item 11456 0 1144 PV-A769B9D85