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 (
    347, 344, 343, 342, 341, 340, 339, 338, 
    335, 334, 333, 332, 331, 330, 328, 321, 
    320, 319, 318, 317, 316, 315, 314, 313, 
    312, 311, 310, 309, 308, 307, 306, 305, 
    304, 303, 302, 301, 300, 299, 298, 297, 
    296, 295, 294, 293, 292, 291
  )

Query time 0.00025

JSON explain

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