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 (
    98074, 98075, 98076, 98077, 98078, 98079, 
    98080, 98081, 98082, 98083, 98523, 
    98524, 98525, 98526, 98527, 98528, 
    98529, 98530, 98531, 98532, 98533, 
    98534, 98535, 98536, 98537, 98557, 
    98558, 98559, 98773, 98774, 98775, 
    98776, 98777, 98778, 98779, 98780, 
    98781, 98782, 98783, 98784, 98785, 
    98786, 98787, 98788, 98789, 98790, 
    98791, 98792, 98793, 98794, 98795, 
    98796, 98797, 98798, 98799, 98800, 
    98801, 98802, 98803, 98804, 98805, 
    98806, 98807, 98808, 98809, 98810, 
    98811, 98812, 98813, 98814, 98874, 
    98875, 98876, 98877, 99056, 99057, 
    99058, 99059, 99060, 99061, 99062, 
    99063, 99064, 99065, 99067, 99324, 
    99325, 99326, 99327, 99328, 99329, 
    99422, 99423, 99424, 99425, 99426
  )

Query time 0.00083

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 (98074,98075,98076,98077,98078,98079,98080,98081,98082,98083,98523,98524,98525,98526,98527,98528,98529,98530,98531,98532,98533,98534,98535,98536,98537,98557,98558,98559,98773,98774,98775,98776,98777,98778,98779,98780,98781,98782,98783,98784,98785,98786,98787,98788,98789,98790,98791,98792,98793,98794,98795,98796,98797,98798,98799,98800,98801,98802,98803,98804,98805,98806,98807,98808,98809,98810,98811,98812,98813,98814,98874,98875,98876,98877,99056,99057,99058,99059,99060,99061,99062,99063,99064,99065,99067,99324,99325,99326,99327,99328,99329,99422,99423,99424,99425,99426))",
          "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"
          ]
        }
      }
    ]
  }
}