Mihir | Fixing SQL syntax