mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 07:10:29 -04:00
Tweak SQL to use 'using' instead of 'on'
This commit is contained in:
parent
f66f6e3287
commit
904b8b1f50
4 changed files with 5 additions and 5 deletions
|
@ -59,7 +59,7 @@ class Patron extends PropertiesBase{
|
|||
}
|
||||
|
||||
public static function GetByEmail(?string $email): Patron{
|
||||
$result = Db::Query('SELECT p.* from Patrons p inner join Users u on p.UserId = u.UserId where u.Email = ?', [$email], 'Patron');
|
||||
$result = Db::Query('SELECT p.* from Patrons p inner join Users u using(UserId) where u.Email = ?', [$email], 'Patron');
|
||||
|
||||
if(sizeof($result) == 0){
|
||||
throw new Exceptions\InvalidPatronException();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue