mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 01:22:23 -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('
|
$result = Db::Query('
|
||||||
SELECT a.*
|
SELECT a.*
|
||||||
from Artists a
|
from Artists a
|
||||||
inner join ArtistAlternateSpellings aas using (ArtistId)
|
left outer join ArtistAlternateSpellings aas using (ArtistId)
|
||||||
where a.UrlName = ?
|
where a.UrlName = ?
|
||||||
or aas.UrlName = ?
|
or aas.UrlName = ?
|
||||||
|
limit 1
|
||||||
', [$artist->UrlName, $artist->UrlName], 'Artist');
|
', [$artist->UrlName, $artist->UrlName], 'Artist');
|
||||||
|
|
||||||
if(isset($result[0])){
|
if(isset($result[0])){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue