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 (
    532, 623, 509, 897, 361, 512, 746, 740, 
    984, 707, 317, 745, 529, 834, 380, 1278, 
    436, 586, 596, 1075, 450, 743, 741, 449, 
    747, 1053, 415, 45, 1074, 1240, 431, 
    1244, 1050, 1052, 1089, 939, 889, 1107, 
    620, 379, 903, 316, 594, 533, 812, 430, 
    451, 614
  )

Query time 0.00062

JSON explain

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