SELECT (SELECT SUM(total) FROM `earnings` WHERE user_id = $userid AND DATE_FORMAT(date_earn, (\'%m\')) = \'11\' AND DATE_FORMAT(date_earn, (\'%Y\')) = \'2020\' AND D