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 (
    394, 402, 129, 126, 147, 152, 1041, 818, 
    816, 66, 27, 28, 1159, 1160, 1158, 1164, 
    1165, 119, 120, 121, 731, 90, 82, 829, 
    1007, 1006, 1003, 1004, 1005, 108, 109, 
    110, 1318, 92, 80, 55, 140, 134, 350, 
    21, 91, 136, 135, 1228, 933, 1239, 70, 
    123
  )

Query time 0.00063

JSON explain

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