But please check such query:

```sql
mysql> select ml_ip, count(*) from multilookup group by 1 order by 2 desc limit 10;
+------------+----------+
| ml_ip      | count(*) |
+------------+----------+
| 2130706433 |   611059 |
|  645908417 |   138306 |
|  168307227 |   129819 |
|  645908418 |   125534 |
| 2147483647 |   102257 |
| 1177190875 |    32804 |
| 2908282669 |    25432 |
|  645908434 |    14144 |
| 1473043519 |    13997 |
|  168311884 |     5450 |
+------------+----------+
10 rows in set (16.62 sec)
```
and 

```sql
mysql> select count(*) from multilookup where ml_ip = '645908417';
+----------+
| count(*) |
+----------+
|   138306 |
+----------+
1 row in set (0.14 sec)
```

And please see what code is foreach loop. There is WikiFactory::isPublic function, which run next query to check if Wikia is public.