mysql version with select