Query Run
set @dbname = 'igwiki'; set @ct_tag_id = ( select ctd_id from ... 2 years ago