Fixed bills_by_query API method.