search_to_sql: fix searching for reserved keywords