modify by PSR2, fixed bugs in query top users