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 (
    97041, 97042, 97043, 97044, 97047, 97048, 
    97049, 97050, 97051, 97052, 97053, 
    97054, 97055, 97056, 97810, 97811, 
    97812, 97813, 97814, 97815, 97816, 
    97817, 97834, 97835, 97836, 97837, 
    97838, 97839, 97840, 97988, 97989, 
    97990, 97991, 97992, 97993, 98030, 
    98031, 98032, 98033, 98034, 98035, 
    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, 98687, 98688, 98689, 98691, 
    98692, 98697, 98698, 98699, 98700, 
    98701, 98738, 98739, 98740, 98741
  )

Query time 0.00066

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 (97041,97042,97043,97044,97047,97048,97049,97050,97051,97052,97053,97054,97055,97056,97810,97811,97812,97813,97814,97815,97816,97817,97834,97835,97836,97837,97838,97839,97840,97988,97989,97990,97991,97992,97993,98030,98031,98032,98033,98034,98035,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,98687,98688,98689,98691,98692,98697,98698,98699,98700,98701,98738,98739,98740,98741))",
          "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"
          ]
        }
      }
    ]
  }
}