I\'m not really good at subqueries, here\'s the sample tables that I have.
table customers ===================== id | name | order_ids 1 | John | 1,2 tab