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 (
    85257, 89242, 83071, 83072, 83624, 83625, 
    90907, 90908, 90986, 90987, 85082, 
    85168, 85214, 85260, 83038, 90874, 
    90953, 82622, 85119, 85122, 86189, 
    86212, 86521, 86797, 90564, 90570, 
    90576, 89073, 83069, 83622, 90905, 
    90984, 85080, 85166, 85212, 85258, 
    86193, 86194, 86216, 86217, 86525, 
    86526, 86801, 86802, 84678, 87304, 
    87305, 87316, 87317, 87328, 87329, 
    87340, 87341, 85120, 87310, 87311, 
    87322, 87323, 87334, 87335, 87346, 
    87347, 84654, 84655, 89818, 89819, 
    89870, 89871, 89942, 89943, 91508, 
    91509, 83083, 83084, 83611, 83612, 
    86144, 86145, 86167, 86168, 86660, 
    86661, 86729, 86730, 90922, 90923, 
    91001, 91002, 87298, 87299, 87292, 
    87293, 84527, 84528, 84593, 84594
  )

Query time 0.00055

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 (85257,89242,83071,83072,83624,83625,90907,90908,90986,90987,85082,85168,85214,85260,83038,90874,90953,82622,85119,85122,86189,86212,86521,86797,90564,90570,90576,89073,83069,83622,90905,90984,85080,85166,85212,85258,86193,86194,86216,86217,86525,86526,86801,86802,84678,87304,87305,87316,87317,87328,87329,87340,87341,85120,87310,87311,87322,87323,87334,87335,87346,87347,84654,84655,89818,89819,89870,89871,89942,89943,91508,91509,83083,83084,83611,83612,86144,86145,86167,86168,86660,86661,86729,86730,90922,90923,91001,91002,87298,87299,87292,87293,84527,84528,84593,84594))",
          "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"
          ]
        }
      }
    ]
  }
}