It's working but returning just one Record. I Have 5 in Total.
Catalog.similar is json type field. I remove [""] from the return and putting inside the WHERE IN Condition. But I get just one record.
SELECT * FROM similar_codes a WHERE a.id IN (SELECT REPLACE(SUBSTR(c.similar,2,LENGTH(c.similar)-2),'"','') FROM catalog c WHERE c.id=1)
The Return from the select inside the WHERE IN is.
SELECT REPLACE(SUBSTR(c.similar,2,LENGTH(c.similar)-2),'"','') FROM catalog c WHERE c.id=1)
3380, 3382, 1952, 3384, 3383
similartable which will be linked to catalog. Then just use simple join.