SELECT REGEXP_SUBSTR(listinfo, ';[^;]+') as list
FROM import AS i
JOIN lists as l ON l.listid = list
WHERE i.userid = 1
SELECT *
FROM
(
SELECT REGEXP_SUBSTR(listinfo, ';[^;]+') as list
FROM import
) AS i
JOIN lists as l
ON l.listid = list
WHERE i.userid = 1