Tweak SQL to use 'using' instead of 'on'

This commit is contained in:
Alex Cabal 2022-07-07 10:38:53 -05:00
parent f66f6e3287
commit 904b8b1f50
4 changed files with 5 additions and 5 deletions

View file

@ -9,7 +9,7 @@ $anonymousPatronCount = 0;
$patronsCircle = Db::Query('SELECT if(p.AlternateName is not null, p.AlternateName, u.Name) as SortedName
from Patrons p inner join Users u
on p.UserId = u.UserId
using(UserId)
where
p.IsAnonymous = false
and p.Ended is null