fix a bug of query mysql ( concurrent bug)