Typo and whitespace tidy
Logic tweak, and operator flip.

Splitting the $wpdb call off from the same line as the comparison
operator for legibility, and correcting the comparison operator.

We also don’t need to worry about any `GROUP BY` bit, as `id` is the
primary, auto-incrementing key.
Add a heartbeat stat for single vs multi network
Add missing semicolon