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 (
    908, 3090, 2752, 1143, 2559, 2822, 2253, 
    2751, 2255, 2927, 2729, 3140, 1542, 
    3026, 853, 1540, 1544, 2736, 4887, 2251, 
    2252, 2254, 2869, 3174
  )

Query time 0.00084

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 (908,3090,2752,1143,2559,2822,2253,2751,2255,2927,2729,3140,1542,3026,853,1540,1544,2736,4887,2251,2252,2254,2869,3174))",
          "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
658 group_variation_catalog_item 853 0 65 PV-B58B7A325
656 group_variation_catalog_item 908 0 45 PV-8ACC44ABF
656 group_variation_catalog_item 1143 0 66 PV-C626C1CC1
656 group_variation_catalog_item 1540 0 114 PV-4F9357752
656 group_variation_catalog_item 1542 0 115 PV-431188704
656 group_variation_catalog_item 1544 0 116 PV-6810F8F70
656 group_variation_catalog_item 2251 0 159 PV-CC47449DC
656 group_variation_catalog_item 2252 0 160 PV-20DF1E8CC
656 group_variation_catalog_item 2253 0 161 PV-76A2C3B09
656 group_variation_catalog_item 2254 0 162 PV-9687B8202
656 group_variation_catalog_item 2255 0 158 PV-3FEA86739
656 group_variation_catalog_item 2559 0 219 PV-C5DF1E08A
656 group_variation_catalog_item 2729 0 268 PV-71D4EBAAD
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 2822 0 284 PV-79F15AEC3
656 group_variation_catalog_item 2869 0 297 PV-FAF68FB20
656 group_variation_catalog_item 2927 0 307 PV-F7FB1BEC4
656 group_variation_catalog_item 3026 0 320 PV-46E18F85C
656 group_variation_catalog_item 3090 0 340 PV-1EDF3347F
656 group_variation_catalog_item 3140 0 350 PV-0582B886C