Fix error with mysql function name