Fixed SQL issue.