SELECT 
  f.feature_id, 
  f.purpose, 
  p.product_id, 
  p.parent_product_id, 
  g.id, 
  g.code 
FROM 
  jmj_product_variation_group_features AS f 
  INNER JOIN jmj_product_variation_groups AS g ON f.group_id = g.id 
  INNER JOIN jmj_product_variation_group_products AS p ON f.group_id = p.group_id 
WHERE 
  p.product_id IN (
    1642, 938, 939, 942, 943, 944, 945, 946, 
    947, 948, 949, 951
  )

Query time 0.00213

JSON explain

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