CORE: small fix for transport sql query