Minor SQL fix