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 (
    4176, 4357, 4287, 4612, 4187, 4639, 4210, 
    4265, 4598, 4503, 4613, 4504, 4635, 
    4466, 4160, 4164, 4335, 4553, 4592, 
    4600, 4340, 4180, 4344, 4591, 4282, 
    4461, 4590, 4178, 4501, 4302, 4616, 
    4296, 4352, 4283, 4353
  )

Query time 0.00077

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "50.16"
    },
    "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": 36,
          "rows_produced_per_join": 36,
          "filtered": "100.00",
          "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`p`.`product_id` in (4176,4357,4287,4612,4187,4639,4210,4265,4598,4503,4613,4504,4635,4466,4160,4164,4335,4553,4592,4600,4340,4180,4344,4591,4282,4461,4590,4178,4501,4302,4616,4296,4352,4283,4353))",
          "cost_info": {
            "read_cost": "21.36",
            "eval_cost": "3.60",
            "prefix_cost": "24.96",
            "data_read_per_join": "576"
          },
          "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": 36,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "9.00",
            "eval_cost": "3.60",
            "prefix_cost": "37.56",
            "data_read_per_join": "14K"
          },
          "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": 36,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "9.00",
            "eval_cost": "3.60",
            "prefix_cost": "50.16",
            "data_read_per_join": "3K"
          },
          "used_columns": [
            "feature_id",
            "purpose",
            "group_id"
          ]
        }
      }
    ]
  }
}

Result

feature_id purpose product_id parent_product_id id code
656 group_variation_catalog_item 4160 0 489 PV-83562D5A7
648 group_variation_catalog_item 4164 0 490 PV-0CBFCB02B
656 group_variation_catalog_item 4335 0 510 PV-EB378597B
656 group_variation_catalog_item 4466 0 522 PV-F76B1C388
656 group_variation_catalog_item 4600 0 530 PV-D1EB5B02B
656 group_variation_catalog_item 4635 0 532 PV-A051036D6