ezCater Interview Question

Find 2 bugs in this code, SQL system design