Invalid query: Whole query: select count(*) as cnt from complaint where is_pending != 1 and ip='64.87.49.49'