Fixing sql syntax
Fixing SQL