From 7766537c2c8a6bb2b848a9623f43bb08224a3162 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 26 Jan 2010 20:36:22 +0000 Subject: [PATCH] Use 'AS' for column alias --- includes/api/ApiQueryAllUsers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryAllUsers.php b/includes/api/ApiQueryAllUsers.php index bceb9e5712..2149bd84c7 100644 --- a/includes/api/ApiQueryAllUsers.php +++ b/includes/api/ApiQueryAllUsers.php @@ -96,7 +96,7 @@ class ApiQueryAllUsers extends ApiQueryBase { $this->addJoinConds( array( 'ipblocks' => array( 'LEFT JOIN', 'ipb_user=u1.user_id' ), $u2 => array( 'LEFT JOIN', 'ipb_by=u2.user_id' ) ) ); - $this->addFields( array( 'ipb_reason', 'u2.user_name blocker_name' ) ); + $this->addFields( array( 'ipb_reason', 'u2.user_name AS blocker_name' ) ); } $this->addOption( 'LIMIT', $sqlLimit ); -- 2.20.1