From 3ff2ed978741724430c8de9f4cdaeaf8c58b0b94 Mon Sep 17 00:00:00 2001 From: rootcoma Date: Thu, 14 Nov 2013 16:22:50 -0800 Subject: [PATCH] Small changes to make query more understandable --- php/user.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/user.php b/php/user.php index b43bc37..94ce4c7 100644 --- a/php/user.php +++ b/php/user.php @@ -155,9 +155,9 @@ tl3.num_answered * 1.0 as n from triviauserlog tl3 ) tl2 - left join triviauserlog tl + inner join triviauserlog tl on tl.username_canonical=:username - where id=tl2.id2 + and tl.id=tl2.id2 '); $q->execute(array(':username'=>$usernameCanonical)); if ($q === false) {