sc_select_where(add) interrupt the search function

I use the “sc select where (add)” “On Script Init”
but when I want to use the search function in case of error.
Please help from the masters