Invalid query: Connection refused Whole query: select distinct ip from complaint where is_pending != 1 and class_ab = ''