mirror of
https://github.com/standardebooks/web.git
synced 2025-07-10 00:30:28 -04:00
Fix broken SQL query when adding artwork for existing artist
This commit is contained in:
parent
36adb85067
commit
56ebdcab0f
1 changed files with 2 additions and 1 deletions
|
@ -117,9 +117,10 @@ class Artist extends PropertiesBase{
|
|||
$result = Db::Query('
|
||||
SELECT a.*
|
||||
from Artists a
|
||||
inner join ArtistAlternateSpellings aas using (ArtistId)
|
||||
left outer join ArtistAlternateSpellings aas using (ArtistId)
|
||||
where a.UrlName = ?
|
||||
or aas.UrlName = ?
|
||||
limit 1
|
||||
', [$artist->UrlName, $artist->UrlName], 'Artist');
|
||||
|
||||
if(isset($result[0])){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue