This might work ?
Code:
MariaDB [static]> select cpid,nick,count(*) as mycount from boinc_user where truncate(metric1,0) in (10000,100000,500000,1000000) group by cpid order by mycount desc limit 0,10;
+----------------------------------+------------+---------+
| cpid | nick | mycount |
+----------------------------------+------------+---------+
| 0dd9749ec16c8900f065d871290156bc | BAR | 7 |
| 2286c5351f0f2d2f5d7fee45967f22b8 | Baryna.ch | 5 |
| e33013c782482e80caf0c65b476a2d87 | JayPi | 4 |
| 89e772f65716bba7c962b4a13d14e350 | AMDave | 4 |
| d7a3d9afaf379c6984d47f1d9672f5e2 | UL1 | 3 |
| 8f15950e07e24a5c0c73016a77c952e9 | Nflight | 3 |
| 61c4eaaca6667bc9dda3412188c5f173 | x3mEn | 3 |
| 16b5360510c4a408ca02d2ff07ab4a9e | RAD-Poland | 2 |
| 8496797f94775aac42635504add88c62 | $ | 2 |
| 2e8203c09bffa7dd415284af2124eb53 | skivelitis | 2 |
+----------------------------------+------------+---------+
10 rows in set (8.956 sec)