Filter wrong for query? I keep getting an error message

I found my mistake. I should've used system.db.runNamedQuery

1 Like

Next time you have an issue and ask for help, you might want to include the errors you get, or some explanation about what's going wrong... The title says you keep getting an error message, but you don't even mention it !

I mean, there's not a single word in this post. Put some effort in it !
Also, post code, formatted with the preformatted text tool, not screenshots of code. Screenshots are really not adapted for this.