# Live Query Not Working

**URL:** <https://www.five.org/t/live-query-not-working/233>\
**Category:** Support\
**Created:** [June 8, 2023, 11:03pm UTC](https://www.five.org/t/live-query-not-working/233 "2023-06-08T23:03:57Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Abu\_Bakr\_Siddique](https://yyz2.discourse-cdn.com/flex030/user_avatar/www.five.org/abu_bakr_siddique/32/172_2.png) [@Abu\_Bakr\_Siddique](https://www.five.org/u/Abu_Bakr_Siddique)\
**Post date:** [June 9, 2023, 12:53pm UTC](https://www.five.org/t/live-query-not-working/233/7 "2023-06-09T12:53:21Z")

</div>

I think I may have resolved the issue for anyone facing similar circumstances. Basically, the **Query’s Parameter ID** and the SQL variable that we are setting to ‘?’ should have the same name (I am guessing with the Casing too). So, since in the last line of my SQL query I am writing:  
iu.iUserKey = ?  
Then the **Parameter ID** for this query also needed to be iUserKey, as shown:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/five/original/1X/164325441b938b7e234211540c9baf2adb2a948d.png)  
This resolved the issue.

I apologize for the long thread and thank you @mark for your help.

Abu.

---

_[View the full topic](https://www.five.org/t/live-query-not-working/233)._
