errors have already been handled by the query function
just pass $session_name with the default value