[SQL] A callback was called twice on error