mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 06:40:33 -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
|
@ -112,7 +112,7 @@ class NewsletterSubscription extends PropertiesBase{
|
|||
// ***********
|
||||
|
||||
public static function Get(string $uuid): NewsletterSubscription{
|
||||
$result = Db::Query('SELECT ns.* from NewsletterSubscriptions ns inner join Users u on ns.UserId = u.UserId where u.Uuid = ?', [$uuid], 'NewsletterSubscription');
|
||||
$result = Db::Query('SELECT ns.* from NewsletterSubscriptions ns inner join Users u using(UserId) where u.Uuid = ?', [$uuid], 'NewsletterSubscription');
|
||||
|
||||
if(sizeof($result) == 0){
|
||||
throw new Exceptions\InvalidNewsletterSubscriptionException();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue