Find the bugs: total value of orders containing a specific product

Find all orders that contain at least one pen item. For each matching order, calculate the total value of all its items using SUM(quantity * price), including any other products. Return order_id and order_value, sorted by order_id in ascending order. Which lines in the query are incorrect?

Find the errorsQuery execution orderMiddleAnalystData EngineerBackend
Input data · iv_order_items
idorder_idproductquantityprice
11pen102.00
21notebook110.00
32pen14.00
43notebook510.00
53bag150.00
64pen23.00
75pen310.00
87bag260.00
98notebook240.00
SELECT order_id,
       SUM(quantity * price) AS order_value
FROM iv_order_items
WHERE product = 'pen'
GROUP BY order_id
HAVING SUM(CASE WHEN product = 'pen' THEN 1 ELSE 0 END) > 0
ORDER BY order_id