Eng 6485 fix bug of limit and group by

But the result only contains one row...