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