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 (
    23172, 3584, 2151, 2163, 1482, 3534, 
    19273, 47604, 2231, 41017, 1766, 28157, 
    1061, 4823, 46176, 41407, 47895, 1062, 
    1850, 4814, 19274, 19565, 5811, 37486, 
    2155, 47592, 6614, 1060, 5810, 4508, 
    37849, 34551
  )

Query time 0.00315

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "p",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "rows": 32,
          "filtered": 100,
          "index_condition": "p.product_id in (23172,3584,2151,2163,1482,3534,19273,47604,2231,41017,1766,28157,1061,4823,46176,41407,47895,1062,1850,4814,19274,19565,5811,37486,2155,47592,6614,1060,5810,4508,37849,34551)"
        }
      },
      {
        "table": {
          "table_name": "f",
          "access_type": "ref",
          "possible_keys": ["idx_group_id"],
          "key": "idx_group_id",
          "key_length": "3",
          "used_key_parts": ["group_id"],
          "ref": ["dev_db.p.group_id"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "g",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["id"],
          "ref": ["dev_db.p.group_id"],
          "rows": 1,
          "filtered": 100
        }
      }
    ]
  }
}

Result

feature_id purpose product_id parent_product_id id code
21911 group_variation_catalog_item 1060 0 14212 PV-4D6B0DFD9
21625 group_variation_catalog_item 1482 0 13953 PV-57294A18C
21471 group_variation_catalog_item 1766 0 13822 PV-AB311C968
21419 group_variation_catalog_item 1850 0 13778 PV-142BAA09B
21215 group_variation_catalog_item 2155 0 13598 PV-733371E87
21177 group_variation_catalog_item 2231 0 13562 PV-9920ABCCE
20598 group_variation_catalog_item 3534 0 13031 PV-A4DF792B3
20241 group_variation_catalog_item 4508 0 12699 PV-F78A111FB
20194 group_variation_catalog_item 4814 0 12658 PV-B7A2EB1A8
20186 group_variation_catalog_item 4823 0 12654 PV-C76D76B59
19608 group_variation_catalog_item 6614 0 12140 PV-3CEB79381
20600 group_variation_catalog_item 19273 0 13033 PV-E879BC301
20601 group_variation_catalog_item 19274 0 13034 PV-333E204C5
20700 group_variation_catalog_item 19565 0 13130 PV-A57461554
21630 group_variation_catalog_item 23172 0 13958 PV-53025FA35
24673 group_variation_catalog_item 46176 0 16905 PV-24CF5BE44