Fix bug in date sql