Assume {segment_2} = “hi-there”
I’m doing the following.
{assign_variable:foo="{exp:tag:tag_name}{segment_2}{/exp:tag:tag_name}"}
{foo} // outputs "hi there"
{exp:query sql='SELECT * FROM exp_weblog_titles WHERE title = "{foo"}'}That query is processing as,
SELECT * FROM exp_weblog_titles WHERE title = "M00o93H7pQ09L8X1t49cHY01Z5j4TT91fGfr"Why?