Hi @hillelc
Thanks for posting your code.
I can see that your ‘posts_where’ filter is missing the word ‘LIKE’ in the str_replace.
Please re-read the 4th example to see where this is needed: http://www.advancedcustomfields.com/resources/query-posts-custom-fields/