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