As an alternate thing to consider:
You could replicate this functionality using a search asset instead of an asset listing (although it may be slower than using precooked DB lookups).
Just setup the search to search the metadata field on the sidebars that you're entering all the asset IDs on. Then force the search to use a stored search query based on the current asset ID and set the show results page to Yes (assuming you're embedding the sidebar using a paint layout or deign or something if not you may need to use global keywords).
A couple of things to note:
- Make sure you have a blank or empty page for no results so that it doesn't appear like a search failed when there's no sidebars
- If you want the sidebars to appear in some sort of order that may be a little tricky with search but you can probably work out a consistent way to sort via metadata or some other attribute/hackery.
- You may have to do some tinkering with select metadata fields which do exact matches for search if your asset ID numbers in the system are low and are causing partial matches to come back in your results. ie your sidebars should appear on page 100 and its appearing on asset 1000.
For what its worth you can also use paint layouts to print the results returned in search and asset listings so you can have access to keyword conditionals, in the default format just use: %asset_contents_paint_XXXX%