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 (
    2767, 2766, 2761, 2760, 2759, 2752, 2751, 
    2742, 2739, 2737, 2736, 2735, 2734, 
    2733, 2729, 2727, 2723, 2721, 2720, 
    2719, 2717, 2708, 2704, 2702
  )

Query time 0.00118

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 (2767,2766,2761,2760,2759,2752,2751,2742,2739,2737,2736,2735,2734,2733,2729,2727,2723,2721,2720,2719,2717,2708,2704,2702))",
          "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 2702 0 261 PV-6B3C654D8
656 group_variation_catalog_item 2704 0 262 PV-56606C70A
656 group_variation_catalog_item 2708 0 263 PV-3B0BD9D58
656 group_variation_catalog_item 2717 0 265 PV-5DAF975A8
656 group_variation_catalog_item 2719 0 266 PV-B9090E930
656 group_variation_catalog_item 2723 0 267 PV-5094A97DE
656 group_variation_catalog_item 2729 0 268 PV-71D4EBAAD
656 group_variation_catalog_item 2737 0 372 PV-FC44F3CC7
656 group_variation_catalog_item 2739 0 270 PV-77D87E1F9
656 group_variation_catalog_item 2742 0 271 PV-72A535B80
656 group_variation_catalog_item 2751 0 272 PV-F86282E5B
656 group_variation_catalog_item 2752 0 273 PV-91B97E55A
656 group_variation_catalog_item 2760 0 356 PV-3B43B31F4
656 group_variation_catalog_item 2761 0 274 PV-04FBC6EFA
656 group_variation_catalog_item 2767 0 275 PV-38C75D30C