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 (
    12520, 12497, 12528, 12512, 12511, 12527, 
    10580, 10579, 9936, 9931, 12521, 12504, 
    12502, 12505, 13099, 12514, 12513, 
    9759, 10496, 10560, 10561, 10581, 10102, 
    9940, 10578, 10143, 9947, 10567, 10568, 
    10565, 9933, 12499, 12500, 10200, 10201, 
    10566, 10545, 10227, 10552, 12506, 
    10693, 12508, 9953, 12522, 12507, 12498, 
    13101, 13100, 10699, 10695, 10195, 
    10576, 10696, 9760, 10583, 10701, 10582, 
    10139, 12503, 10575, 9932, 10075, 10135, 
    9952
  )

Query time 0.00025

JSON explain

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