Not able to mark email as read

When I try to mark an email as read I get the following error:


the error looks like this:

App Versions

	"banking": "15.1.0",
	"builder": "1.0.0-dev",
	"erpnext": "16.0.0-dev",
	"frappe": "16.0.0-dev",
	"gameplan": "0.0.1",
	"lms": "1.0.0",
	"print_designer": "1.3.3",
	"raven": "1.4.4",
	"tldraw_whiteboard": "0.0.1",
	"wiki": "2.0.0"




Traceback (most recent call last):
  File "apps/frappe/frappe/", line 110, in application
    response = frappe.api.handle(request)
  File "apps/frappe/frappe/api/", line 49, in handle
    data = endpoint(**arguments)
  File "apps/frappe/frappe/api/", line 36, in handle_rpc_call
    return frappe.handler.handle()
  File "apps/frappe/frappe/", line 49, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/", line 85, in execute_cmd
    return, **frappe.form_dict)
  File "apps/frappe/frappe/", line 1795, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/utils/", line 31, in wrapper
    return func(*args, **kwargs)
  File "apps/frappe/frappe/email/", line 57, in create_email_flag_queue
    uid, seen_status, email_account = frappe.db.get_value(
  File "apps/frappe/frappe/database/", line 509, in get_value
    result = self.get_values(
  File "apps/frappe/frappe/database/", line 613, in get_values
    out = self._get_values_from_table(
  File "apps/frappe/frappe/database/", line 871, in _get_values_from_table
    query = frappe.qb.get_query(
  File "apps/frappe/frappe/query_builder/", line 58, in get_query
    return Engine().get_query(*args, **kwargs)
  File "apps/frappe/frappe/database/", line 73, in get_query
  File "apps/frappe/frappe/database/", line 101, in apply_fields
    self.fields = self.parse_fields(fields)
  File "apps/frappe/frappe/database/", line 335, in parse_fields
  File "apps/frappe/frappe/database/", line 316, in parse_field
    return self.get_function_object(field)
  File "apps/frappe/frappe/database/", line 236, in get_function_object
    if _operator in initial_fields:
TypeError: argument of type 'int' is not iterable

Request Data

	"type": "POST",
	"args": {
		"names": "[\"88abe3215d\"]",
		"action": "Read",
		"flag": "(\\SEEN)"
	"freeze": true,
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/",
	"request_id": null

Response Data

	"exception": "TypeError: argument of type 'int' is not iterable",
	"exc_type": "TypeError"

any idea what causes this issue?