bug #4664 select min() displays 1 row, but reports the table amount of rows returned

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>