Fix: Error in the built SQL