Sonia - Fixing a SQL syntax error