Fix fast_select for virtual fields in joined tables, fix #1409, optimize staff search