I am trying to add the value of a column into a SQL CONCAT query to be able to update another column, let me demonstrate.
I need the value of the column "winner" and add it to my query, since what I want to accomplish is for the query to say SELECT team2_name FROM x WHERE matchid = 1.
This is what I've tried so far.
UPDATE tournament_matches
SET match_id = 5
WHERE team_name IN (
SELECT CONCAT(@winner, '_name')
FROM get5_stats_matches
WHERE match_id = 1
);
But it doesn't affect any row since CONCAT(@winner, '_name') doesn't display team2_name which I need it to do.
Where do I go wrong?

@beforewinner? That's using a user-defined variable, not the table column.@winnertowinner.CONCAT(winner, '_name'), notwinner + '_name'