I'm baffled.
Here are the two queries, the first works, the second don't
Code:
SELECT ip, IF(query_ip != '' AND query_ip_for_groups REGEXP '[A]', query_ip, ip) AS query_ip, (last_refresh BETWEEN NOW() - INTERVAL 5 SECOND AND NOW()) AS up_to_date,hostname,short_hostname,private,players,bots,maxplayers,map,advertise_min_players,advertise_min_slots FROM `redirect_servers` WHERE ip!='162.248.88.212:27025' AND game='csgo' AND advertise_in_groups REGEXP '[A]' ORDER BY `order`
SELECT ip, IF(query_ip != '' AND query_ip_for_groups REGEXP '[A]', query_ip, ip) AS query_ip, (last_refresh BETWEEN NOW() - INTERVAL 5 SECOND AND NOW()) AS up_to_date,hostname,short_hostname,private,players,bots,maxplayers,map,pw, (expose_pw_for_groups REGEXP '[A]') as expose_pw FROM `redirect_servers` WHERE ip!='162.248.88.212:27025' AND game='csgo' AND show_in_groups REGEXP '[A]' AND (refresh_failures <= 10 OR last_online >= (NOW() - INTERVAL 20 MINUTE)) ORDER BY `order`
When I say don't work, the following SQL statement:
Code:
IF(query_ip != '' AND query_ip_for_groups REGEXP '[A]', query_ip, ip) AS query_ip
Shall return the ip field as query_ip is void.
And we tested it with the query I asked you, it works.
But in the log, I can see that, only with second query the field query_ip is equal to '':
Code:
Querying 162.248.88.212:27045 @""
Thus the plugin tries to query a server with empty IP which inevitably fails.
The query I asked you to run was a bit shortened, can you try with the full query?
Code:
SELECT ip, IF(query_ip != '' AND query_ip_for_groups REGEXP '[A]', query_ip, ip) AS query_ip, (last_refresh BETWEEN NOW() - INTERVAL 5 SECOND AND NOW()) AS up_to_date,hostname,short_hostname,private,players,bots,maxplayers,map,advertise_min_players,advertise_min_slots FROM `redirect_servers` WHERE ip!='162.248.88.212:27025' AND game='csgo' AND advertise_in_groups REGEXP '[A]' ORDER BY `order`