Fixing sql issue
Fixing sql issue