App_tables.<table_name>.search(name=nm) not working as expected

This post shows how to make a clone