Fix broken SQL query when adding artwork for existing artist

This commit is contained in:
Alex Cabal 2024-01-15 22:17:30 -06:00
parent 36adb85067
commit 56ebdcab0f

View file

@ -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])){