SELECT 
  f.feature_id, 
  f.purpose, 
  p.product_id, 
  p.parent_product_id, 
  g.id, 
  g.code 
FROM 
  q_product_variation_group_features AS f 
  INNER JOIN q_product_variation_groups AS g ON f.group_id = g.id 
  INNER JOIN q_product_variation_group_products AS p ON f.group_id = p.group_id 
WHERE 
  p.product_id IN (
    3028, 3033, 3038, 3043, 3067, 3071, 2942, 
    2946, 2951, 2955, 2959, 2963, 2972, 
    2976, 2980, 2984
  )

Query time 0.00064

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "76.81"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "p",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "product_id"
          ],
          "key_length": "4",
          "rows_examined_per_scan": 16,
          "rows_produced_per_join": 16,
          "filtered": "100.00",
          "index_condition": "(`portal`.`p`.`product_id` in (3028,3033,3038,3043,3067,3071,2942,2946,2951,2955,2959,2963,2972,2976,2980,2984))",
          "cost_info": {
            "read_cost": "35.21",
            "eval_cost": "3.20",
            "prefix_cost": "38.41",
            "data_read_per_join": "256"
          },
          "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": "4",
          "ref": [
            "portal.p.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 16,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "16.00",
            "eval_cost": "3.20",
            "prefix_cost": "57.61",
            "data_read_per_join": "12K"
          },
          "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": "4",
          "ref": [
            "portal.p.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 16,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "16.00",
            "eval_cost": "3.20",
            "prefix_cost": "76.81",
            "data_read_per_join": "1K"
          },
          "used_columns": [
            "feature_id",
            "purpose",
            "group_id"
          ]
        }
      }
    ]
  }
}

Result

feature_id purpose product_id parent_product_id id code
73 group_variation_catalog_item 2942 0 30 PV-595F429D3
73 group_variation_catalog_item 2946 0 32 PV-83851BCDA
73 group_variation_catalog_item 2951 0 33 PV-2968BBCDD
73 group_variation_catalog_item 2955 0 46 PV-D463AC481
73 group_variation_catalog_item 2959 0 47 PV-A25076584
74 group_variation_catalog_item 2963 0 52 PV-7630D31B2
73 group_variation_catalog_item 2963 0 52 PV-7630D31B2
73 group_variation_catalog_item 2972 0 54 PV-2AD945A57
73 group_variation_catalog_item 2976 0 56 PV-EAACF9264
73 group_variation_catalog_item 2980 0 55 PV-B70523421
73 group_variation_catalog_item 2984 0 57 PV-AC7AD3E3A
73 group_variation_catalog_item 3028 0 36 PV-1163227D4
73 group_variation_catalog_item 3033 0 34 PV-FAF262E38
73 group_variation_catalog_item 3038 0 37 PV-694EBA612
74 group_variation_catalog_item 3043 0 31 PV-F95AF691F
73 group_variation_catalog_item 3043 0 31 PV-F95AF691F
74 group_variation_catalog_item 3067 0 39 PV-89ACB4DE4
73 group_variation_catalog_item 3067 0 39 PV-89ACB4DE4
73 group_variation_catalog_item 3071 0 38 PV-0C3BC7206