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 (
    89323, 89322, 89325, 86816, 89306, 89324, 
    89366, 89305, 89317, 89307, 89319, 
    89326, 89312, 89345, 89318, 89347, 
    89346, 89255, 89348, 89261, 89314, 
    89320, 89260, 89315, 89256, 89313, 
    89316, 89310, 89311, 89304, 89303, 
    89259, 89258, 93071, 93072, 93073, 
    93074, 93075, 93076, 93077, 93515, 
    93516, 93517, 93518, 93519, 93520, 
    93521, 93522, 93894, 93895, 94067, 
    94068, 94069, 94070, 94071, 94072, 
    94703, 94704, 96296, 96297, 96732, 
    96733, 96744, 96745, 96773, 96774, 
    97827, 97828, 98138, 98139, 98140, 
    98141, 98142, 98143, 98144, 98695, 
    98696, 98702, 98703, 98704, 98705, 
    98706, 98707, 98708, 98709, 98710, 
    98711, 98712, 98713, 98714, 98715, 
    100599, 100600, 100659, 100660, 100661
  )

Query time 0.00077

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 (89323,89322,89325,86816,89306,89324,89366,89305,89317,89307,89319,89326,89312,89345,89318,89347,89346,89255,89348,89261,89314,89320,89260,89315,89256,89313,89316,89310,89311,89304,89303,89259,89258,93071,93072,93073,93074,93075,93076,93077,93515,93516,93517,93518,93519,93520,93521,93522,93894,93895,94067,94068,94069,94070,94071,94072,94703,94704,96296,96297,96732,96733,96744,96745,96773,96774,97827,97828,98138,98139,98140,98141,98142,98143,98144,98695,98696,98702,98703,98704,98705,98706,98707,98708,98709,98710,98711,98712,98713,98714,98715,100599,100600,100659,100660,100661))",
          "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"
          ]
        }
      }
    ]
  }
}