diff --git a/batchAntiSpoof.php b/batchAntiSpoof.php
index <HASH>..<HASH> 100644
--- a/batchAntiSpoof.php
+++ b/batchAntiSpoof.php
@@ -12,7 +12,7 @@ $batchSize = 1000;
 
 $result = $dbw->select( 'user', 'user_name', null, 'batchAntiSpoof.php' );
 $n = 0;
-foreach( $res as $row ) {
+foreach( $result as $row ) {
 	if ( $n++ % $batchSize == 0 ) {
 		echo "$wgDBname $n\n";
 	}
followup r<I> typo in var name