title: How to use a SELECT query along with other fields IN mysql
body: <p>I am using a SELECT query to FETCH results which has some joins, in the result i want a dynamic SELECT query which fetch the name from a table. How to include that SELECT query. For eg, SELECT id, cost , name(this name should be FETCH FROM a table based on some condition so how to include this query.)</p>