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 (
    10797, 10798, 10799, 10800, 10801, 10802, 
    10803, 10804, 10805, 10806, 10807, 
    10808, 10809, 10810, 10811, 10812, 
    10827, 10828, 10767, 10768, 10769, 
    10770, 10771, 10772, 10773, 10774, 
    10775, 10776, 10777, 10459, 10460, 
    10461, 10462, 10463, 10464, 10465, 
    10625, 10626, 10627, 10628, 10629, 
    10630, 10631, 10632, 10633, 10634, 
    10635, 10636, 12944, 10829, 10830, 
    10831, 10832, 10833, 10834, 10835, 
    10836, 10837, 10838, 10839, 12985, 
    12986, 12987, 12988
  )

Query time 0.00034

JSON explain

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