By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS x
FROM partStock
-- GROUP BY part -- WITH ROLLUP
-- ORDER BY 1,2
LIMIT ...' at line 33