Found the issue.
The maxClients field was being scanned for. This only allowed a “maxClients” of between 1 and 9999. The idea for this range was to get nodes that were not set to 0 max clients. I was trying to make the sql handle the return, but this would imply some form of array to search for. I just moved the check to look if it is less than 1.