[0012] v1.2 Working MySQL function