mysql result fix bug