Home SalonSELECT *, SUM(amount) as totalRecharge FROM `wallet_transaction` WHERE `usetype`='PURCHASED' AND datetime >= '2020-11-29 20:57:08' AND user_id IN (SELECT `portfolioholder_userid` FROM `portfolioholder_detail` WHERE `portfolioholder_subcategoryname`='Home Salon') GROUP BY user_id