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 (
    965, 967, 968, 969, 970, 972, 973, 974, 
    975, 976, 977, 978
  )

Query time 0.01029

JSON explain

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