# Cannot Search on a smart field with two joints

**URL:** <https://community.forestadmin.com/t/cannot-search-on-a-smart-field-with-two-joints/2546>\
**Category:** Help me!\
**Created:** [May 24, 2021, 10:23am UTC](https://community.forestadmin.com/t/cannot-search-on-a-smart-field-with-two-joints/2546 "2021-05-24T10:23:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![morganperre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/morganperre/32/1296_2.png) [@morganperre](https://community.forestadmin.com/u/morganperre)\
**Post date:** [May 24, 2021, 10:47am UTC](https://community.forestadmin.com/t/cannot-search-on-a-smart-field-with-two-joints/2546/2 "2021-05-24T10:47:44Z")

</div>

Hey @Lucas_Gerard,

Thanks for this very detailed report. I just need a few more informations.  
Where to you create the `query` object passed as a parameter of your search function ?

Also, can you paste the SQL query error form the console ?

Thank in advance.  
Morgan

---

_[View the full topic](https://community.forestadmin.com/t/cannot-search-on-a-smart-field-with-two-joints/2546)._
