fix mysql select.