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 (
    97829, 97830, 97831, 97832, 97834, 97835, 
    97836, 97837, 97838, 97839, 97840, 
    97988, 97989, 97990, 97991, 97992, 
    97993, 98030, 98031, 98032, 98033, 
    98034, 98035, 98039, 98138, 98139, 
    98140, 98141, 98142, 98143, 98144, 
    98157, 98158, 98159, 98160, 98161, 
    98162, 98163, 98164, 98165, 98166, 
    98167, 98168, 98224, 98225, 98226, 
    98227, 98228, 98234, 98235, 98236, 
    98237, 98238, 98239, 98240, 98241, 
    98242, 98243, 98244, 98245, 98246, 
    98247, 98248, 98249, 98250, 98251, 
    98252, 98253, 98254, 98255, 98256, 
    98257, 98258, 98259, 98260, 98261, 
    98262, 98263, 98264, 98265, 98266, 
    98267, 98268, 98269, 98270, 98271, 
    98272, 98273, 98274, 98275, 98276, 
    98277, 98278, 98279, 98280, 98281
  )

Query time 0.00063

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1.05"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "f",
          "access_type": "ALL",
          "possible_keys": [
            "idx_group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.25",
            "eval_cost": "0.10",
            "prefix_cost": "0.35",
            "data_read_per_join": "104"
          },
          "used_columns": [
            "feature_id",
            "purpose",
            "group_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "g",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "id"
          ],
          "key_length": "3",
          "ref": [
            "nuie_scalesta_net.f.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.25",
            "eval_cost": "0.10",
            "prefix_cost": "0.70",
            "data_read_per_join": "400"
          },
          "used_columns": [
            "id",
            "code"
          ]
        }
      },
      {
        "table": {
          "table_name": "p",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "idx_group_id",
          "used_key_parts": [
            "group_id"
          ],
          "key_length": "3",
          "ref": [
            "nuie_scalesta_net.f.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "index_condition": "(`nuie_scalesta_net`.`p`.`product_id` in (97829,97830,97831,97832,97834,97835,97836,97837,97838,97839,97840,97988,97989,97990,97991,97992,97993,98030,98031,98032,98033,98034,98035,98039,98138,98139,98140,98141,98142,98143,98144,98157,98158,98159,98160,98161,98162,98163,98164,98165,98166,98167,98168,98224,98225,98226,98227,98228,98234,98235,98236,98237,98238,98239,98240,98241,98242,98243,98244,98245,98246,98247,98248,98249,98250,98251,98252,98253,98254,98255,98256,98257,98258,98259,98260,98261,98262,98263,98264,98265,98266,98267,98268,98269,98270,98271,98272,98273,98274,98275,98276,98277,98278,98279,98280,98281))",
          "cost_info": {
            "read_cost": "0.25",
            "eval_cost": "0.10",
            "prefix_cost": "1.05",
            "data_read_per_join": "16"
          },
          "used_columns": [
            "product_id",
            "parent_product_id",
            "group_id"
          ]
        }
      }
    ]
  }
}