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