sql_where_phrases_in bug fix