mysql query explode with two table join

my sql query

SELECT 
    team.id,
    team.atitle,
    team.etitle,
    team.cup_id,
    team.logo,
    team.modarb,
    team.count_id,
    team.link AS tlink,
    country.atitle AS name,
    country.etitle AS ename,
    cup.id AS catid,
    cup.link,
    cup.description,
    cup.name AS cupname
    FROM cup LEFT JOIN team ON (cup.id IN (". implode(', ', 'team.cup_id') ."))
    LEFT JOIN country ON (country.id = team.count_id)
    where cup.id='5'

row team.cup_id look like this 5, 4, 3,
need know how to use implode in mysql query


Source: stackoverflow-php