select * from folder f join uploads u ON u.id = f.folderId where '8' = ANY (string_to_array(some_column,','))