Invalid query: No such file or directory Whole query: select distinct ip from complaint where is_pending != 1 and class_ab = ''