Small SQL fix