In order to fix the problem, I recommend that you run the program using Administrator rights. Right-click the launcher and select the Run as Administrator option. If it doesn't help, check if another user is using the same WRKQRY command. From what it seems, he or she is using another command to access the library that contains the query.