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 (
    12650, 12649, 12643, 12640, 12647, 15800, 
    12639, 12641, 12638, 12637, 12634, 
    12635, 12636, 12654, 12653, 12652, 
    12656, 12655, 12646, 12631, 12998, 
    12997, 12996, 12995, 10826, 10825, 
    10824, 10823, 10822, 10821, 10820, 
    10819, 10818, 10817, 10816, 10815, 
    10814, 10813, 13044, 13043, 13042, 
    13041, 13040, 13039, 13038, 13037, 
    13036, 13035, 13034, 13033, 13032, 
    13031, 13030, 13029, 13028, 13027, 
    13026, 13025, 13024, 13023, 13022, 
    13021, 13020, 13019
  )

Query time 0.00027

JSON explain

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