bugfix old mysql function calls