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 (
    371, 370, 369, 368, 367, 366, 365, 364, 
    363, 362, 361, 360, 359, 358, 357, 356, 
    355, 354, 353, 352, 351, 350, 349, 348, 
    347, 346, 345, 344, 342, 341, 340, 339, 
    338, 335, 334, 333, 332, 331, 330, 325, 
    324, 323, 322, 321, 320, 319, 318, 317
  )

Query time 0.00025

JSON explain

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