I am using a sub query to get all qcodes and passing it as a parameter to another query in mysql. But inner query is returning value like -

```
SELECT qcodes FROM boardmst WHERE id=10

10002','10028','10031','10202','10226

```

so how to parse it to pass in another query with IN clause?

```
SELECT * FROM users WHERE qcodes IN (SELECT qcodes FROM boardmst WHERE id=10)

```