# Filter wrong for query? I keep getting an error message

**URL:** <https://forum.inductiveautomation.com/t/filter-wrong-for-query-i-keep-getting-an-error-message/75773>\
**Category:** Ignition\
**Created:** [June 30, 2023, 1:58pm UTC](https://forum.inductiveautomation.com/t/filter-wrong-for-query-i-keep-getting-an-error-message/75773 "2023-06-30T13:58:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christy\_Jean](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@Christy\_Jean](https://forum.inductiveautomation.com/u/Christy_Jean)\
**Post date:** [June 30, 2023, 1:58pm UTC](https://forum.inductiveautomation.com/t/filter-wrong-for-query-i-keep-getting-an-error-message/75773/1 "2023-06-30T13:58:41Z")

</div>

![query](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/0/f0fb2d22496f57e1925e23d6c9d9e6e882cd7e31.png)  
 ![script](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/8/2834be2dfde00683b719ec63b08e45915d9f6a6d.png)

---

<div class="post-metadata">

**Author:** ![Christy\_Jean](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@Christy\_Jean](https://forum.inductiveautomation.com/u/Christy_Jean)\
**Post date:** [June 30, 2023, 2:02pm UTC](https://forum.inductiveautomation.com/t/filter-wrong-for-query-i-keep-getting-an-error-message/75773/2 "2023-06-30T14:02:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 30, 2023, 2:09pm UTC](https://forum.inductiveautomation.com/t/filter-wrong-for-query-i-keep-getting-an-error-message/75773/3 "2023-06-30T14:09:33Z")

</div>

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.
