getAuthorisedCategiries Query optimized