- [x] 1. remove double query - [x] 2. remove DAYOFYEAR\ - [x] 3. change LEFT join to INNER join - [x] 4. remove ISNULL(`sys_profiles`.`status`) OR - [x] 5. remove distinct in every subquery, use one insead of