JQL selects work items by their fields. A clause has a field, an operator and a value. Equality matches one value; IN expresses a set of acceptable values. Quote values containing spaces so the parser treats them as one value. Project keys and work item keys describe different scopes.
Build the population before sorting it. If a request asks for Lark bugs, selecting every bug across the site is too broad, even when the visible first rows happen to be Lark records. The checker compares behavior against changed records and boundary probes, so a list of memorized keys won't satisfy a reusable filter request. This local JQL subset reports unsupported syntax. It doesn't guess at a hosted function that it hasn't modeled.
Select a reusable JQL population with the required scope.