SQL mistake fixup.