Changed sql private function variable name