Small changes to make query more understandable

This commit is contained in:
rootcoma 2013-11-14 16:22:50 -08:00
parent 6e749e7e92
commit 3ff2ed9787
1 changed files with 2 additions and 2 deletions

View File

@ -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) {