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 (
    5774, 43827, 40312, 48852, 47855, 5565, 
    35470, 48776, 35471, 6544, 48848, 49290, 
    47564, 49397, 49287, 49400, 49289, 
    48946, 49540, 49399, 48939, 49502, 
    49383, 48472, 48475, 49547, 49604, 
    49662, 50297, 50298, 50053, 50179
  )

Query time 0.00330

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 (5774,43827,40312,48852,47855,5565,35470,48776,35471,6544,48848,49290,47564,49397,49287,49400,49289,48946,49540,49399,48939,49502,49383,48472,48475,49547,49604,49662,50297,50298,50053,50179)"
        }
      },
      {
        "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
24066 group_variation_catalog_item 40312 0 16286 PV-589257F02
24450 group_variation_catalog_item 43827 0 16674 PV-C803BDDDC
25018 group_variation_catalog_item 48472 0 17264 PV-F42C29EBF
25018 group_variation_catalog_item 48475 0 17266 PV-F50472110
24953 group_variation_catalog_item 48776 0 17208 PV-4862BA802