correct mistake on sql request