Runtime error at line 64 of script '../libraries/log.lib'. Error is 'Reference to uninitialised variable sql'