added MapQuery_FindCategory function