fixed missing space in sql