Bug 18497: Use report id to retrieve saved SQL instead of passing param