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 (
    10331, 10358, 10378, 10311, 10332, 10359, 
    10379, 10312, 10333, 10360, 10380, 
    10334, 10361, 10381, 10335, 10362, 
    10336, 10363, 10337, 10364, 10338, 
    10365, 10339, 10366, 10340, 10367, 
    10341, 10368, 10342, 12565, 10293, 
    10296, 10301, 10313, 10318, 10294, 
    10297, 10302, 10314, 10319, 12552, 
    12554, 10295, 10298, 10303, 10315, 
    10320, 10299, 10304, 10316, 10321, 
    10300, 10317, 10322, 12572, 12575, 
    12571, 12573, 10273, 10272, 10271, 
    10270, 10269, 10268
  )

Query time 0.00033

JSON explain

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