Przechowywanie danych w ten sposób nie jest dobrym pomysłem.
Pierwszy pomysł, który wpadł mi do głowy to:http://sqlfiddle.com/#!2/ 1d77/4
SELECT b.*, GROUP_CONCAT(a.name SEPARATOR ':')
FROM table2 as b
LEFT JOIN table1 as a
on b.var = a.id
OR b.var regexp(CONCAT('^',a.id,':'))
OR b.var regexp(CONCAT(':',a.id,':'))
OR b.var regexp(CONCAT(':',a.id,'$'))
GROUP BY b.id
EDYTUJ 1
Zamówiony wariant:http://sqlfiddle.com/#!2/1dd77/38
SELECT b.*, GROUP_CONCAT(a.name ORDER BY FIND_IN_SET(a.id, REPLACE(b.var,":",",")) SEPARATOR ':' )
FROM table2 as b
LEFT JOIN table1 as a
on b.var = a.id
OR b.var regexp(CONCAT('^',a.id,':'))
OR b.var regexp(CONCAT(':',a.id,':'))
OR b.var regexp(CONCAT(':',a.id,'$'))
GROUP BY b.id