I have a query like
select prod_name
from ct_products
where id in ( (select prod_id
from ct_recommend
where cat_id=12) ) and status > 0
However, because the subquery return a string that looks like 1,2,3 instead of rows of result, the query doesn’t work the way it should. Is there any way to format the subquery result so that it works in the IN clause?
Thank you!
give this a try,