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 (
    109, 91, 92, 161, 188, 202, 203, 34, 31, 
    38, 80, 165, 166, 86, 106, 105, 247, 101, 
    33, 32, 163, 244, 212, 155, 102, 55, 176, 
    69, 138, 110, 36, 206, 28, 184, 183, 133, 
    132, 125, 120, 223, 225, 224, 146, 147, 
    93, 117, 219, 222, 220, 221, 87, 113, 
    139, 118, 83, 157, 123, 174, 171, 280, 
    282, 278, 336, 20, 119, 100, 46, 204, 
    45, 68, 29, 6, 8, 14, 9, 10, 19, 21, 7, 27, 
    124, 50, 51, 49, 48, 54, 44, 194, 137, 
    153, 164, 236, 234, 150, 151, 178, 181, 
    248, 65, 64, 63, 62, 66, 140, 141, 144, 
    143, 142, 13
  )

Query time 0.00099

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "225.84"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "f",
          "access_type": "ALL",
          "possible_keys": [
            "idx_group_id"
          ],
          "rows_examined_per_scan": 21,
          "rows_produced_per_join": 21,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "2.19",
            "eval_cost": "4.20",
            "prefix_cost": "6.39",
            "data_read_per_join": "2K"
          },
          "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": [
            "atulecarter_atul_demo2.f.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 21,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "21.00",
            "eval_cost": "4.20",
            "prefix_cost": "31.59",
            "data_read_per_join": "8K"
          },
          "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": [
            "atulecarter_atul_demo2.f.group_id"
          ],
          "rows_examined_per_scan": 16,
          "rows_produced_per_join": 312,
          "filtered": "91.67",
          "cost_info": {
            "read_cost": "126.00",
            "eval_cost": "62.56",
            "prefix_cost": "225.84",
            "data_read_per_join": "4K"
          },
          "used_columns": [
            "product_id",
            "parent_product_id",
            "group_id"
          ],
          "attached_condition": "(`atulecarter_atul_demo2`.`p`.`product_id` in (109,91,92,161,188,202,203,34,31,38,80,165,166,86,106,105,247,101,33,32,163,244,212,155,102,55,176,69,138,110,36,206,28,184,183,133,132,125,120,223,225,224,146,147,93,117,219,222,220,221,87,113,139,118,83,157,123,174,171,280,282,278,336,20,119,100,46,204,45,68,29,6,8,14,9,10,19,21,7,27,124,50,51,49,48,54,44,194,137,153,164,236,234,150,151,178,181,248,65,64,63,62,66,140,141,144,143,142,13))"
        }
      }
    ]
  }
}

Result

feature_id purpose product_id parent_product_id id code
548 group_variation_catalog_item 278 0 10 PV-27186628F
548 group_variation_catalog_item 280 0 10 PV-27186628F
548 group_variation_catalog_item 282 0 10 PV-27186628F
549 group_catalog_item 278 0 10 PV-27186628F
549 group_catalog_item 280 0 10 PV-27186628F
549 group_catalog_item 282 0 10 PV-27186628F