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 (
    31744, 31730, 31734, 31732, 1472, 31741, 
    33161, 1471, 31739, 31735, 31740, 31736, 
    33160, 31738
  )

Query time 0.00113

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": 14,
          "filtered": 100,
          "index_condition": "p.product_id in (31744,31730,31734,31732,1472,31741,33161,1471,31739,31735,31740,31736,33160,31738)"
        }
      },
      {
        "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
23213 group_variation_catalog_item 31730 0 15329 PV-C08CCD6E3
23215 group_variation_catalog_item 31735 0 15331 PV-765B8A22B
23216 group_variation_catalog_item 31736 0 15332 PV-84A105F24
23217 group_variation_catalog_item 31738 0 15333 PV-90C109C1F
23218 group_variation_catalog_item 31741 0 15334 PV-41EF2A56F
23209 group_variation_catalog_item 31744 0 15328 PV-D5C6F5D47
23408 group_variation_catalog_item 33161 0 15540 PV-F1FEC92F1
23409 group_variation_catalog_item 33161 0 15540 PV-F1FEC92F1