Error connecting to server databaseSubquery returns more than 1 row