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 (
    397, 511, 1023, 1022, 847, 525, 577, 576, 
    658, 659, 932, 656, 657, 376, 540, 592, 
    1015, 767, 1088, 572, 619, 355, 342, 
    547, 591, 902, 323, 757, 1236, 1225, 
    294, 47, 48, 356, 1293, 1242, 846, 593, 
    616, 1087, 520, 548, 899
  )

Query time 0.00064

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "message": "Impossible WHERE noticed after reading const tables"
    }
  }
}