For this one you just need to alias t.id AS topic_id
and it should work its magic for you.
There are a few more examples of Explorer magic you can use in this topic - IDs in Data Explorer - #3 by tshenry too
When you say ‘a certain topic’ will it be the same topic each time? (ie. a static topic id)