Fix search term query

Fix search term query to properly use bind params