Oxmysql val.slice is not a function error

I’m not sure what this is telling me as I have no knowledge on SQL errors. If any one has had this error can you help lead me in the right direction? Error is coming from a custom script utilizing ESX_License functions.