Make the logged SQL look like the actual query.