Hi @goushi
Can you try following step 4 of this article: https://www.advancedcustomfields.com/resources/query-posts-custom-fields/
Update: Since the changed behaviour of esc_sql() in WordPress 4.8.3, it is not easy to use the % character as a placeholder for the following search and replace, instead, we recommend that you use the $ character as shown below.
That may be causing your issue ^
Please let me know if that helps, or if we need to dig a bit deeper.
Phil