Re: [SlimDevices: Plugins] SQL Query usage in Database query plugin

2022-02-03 Thread mamema
as always, kudos Michael, very much appreciated Diana Krall 128525 CANDLELIT EVENING 282965 0 2010 81a6bd55CANDLELIT EVENING mamema's Profile: h

Re: [SlimDevices: Plugins] SQL Query usage in Database query plugin

2022-02-02 Thread Michael Herger
WHERE ( id IN ( SELECT me.album FROM tracks me WHERE ( ( ... /lms/Slim/Schema/Storage.pm line 125 , ambiguous column name: id This time you'll have to specify what table's ID you refer to here. I guess that would be "me.id". ___ plugins mailing lis

Re: [SlimDevices: Plugins] SQL Query usage in Database query plugin

2022-02-02 Thread mamema
this: SELECT contributors.name, me.id, me.titlesort, me.contributor, me.compilation, me.year, me.artwork, me.disc, me.discc, me.musicmagic_mixable, me.titlesearch, me.replay_gain, me.replay_peak, me.musicbrainz_id, me.extid, me.title FROM albums me JOIN contributors ON contributors.id = me.contr

Re: [SlimDevices: Plugins] SQL Query usage in Database query plugin

2022-02-02 Thread Michael Herger
FROM albums JOIN contributors ON contributors.id = me.contributor me That last "me" should probably go after "albums". ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins

Re: [SlimDevices: Plugins] SQL Query usage in Database query plugin

2022-02-02 Thread mamema
normally your head is good, so it's me. :-) This: SELECT contributors.name, me.id, me.titlesort, me.contributor, me.compilation, me.year, me.artwork, me.disc, me.discc, me.musicmagic_mixable, me.titlesearch, me.replay_gain, me.replay_peak, me.musicbrainz_id, me.extid, me.title FROM albums JOIN

Re: [SlimDevices: Plugins] SQL Query usage in Database query plugin

2022-01-31 Thread mherger
Off the top of my head (and without testing): add "contributors.name" to the field list after the select and "JOIN contributors ON contributors.id = me.contributor" after the "FROM albums". Michael "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"

Re: [SlimDevices: Plugins] SQL Query usage in Database query plugin

2022-01-26 Thread mamema
mherger wrote: > > > > The question marks in there are placeholders, and the three values after > > the colon are the values to replace those placeholders with: > > SELECT me.id, me.titlesort, me.contributor, me.compilation, me.year, > me.artwork, me.disc, me.discc, me.musicmagic_mixable, me.

Re: [SlimDevices: Plugins] SQL Query usage in Database query plugin

2022-01-03 Thread mamema
wonderful. Thanks Michael mamema's Profile: http://forums.slimdevices.com/member.php?userid=44662 View this thread: http://forums.slimdevices.com/showthread.php?t=115686 ___ plu

Re: [SlimDevices: Plugins] SQL Query usage in Database query plugin

2022-01-03 Thread Michael Herger
SELECT me.id, me.titlesort, me.contributor, me.compilation, me.year, me.artwork, me.disc, me.discc, me.musicmagic_mixable, me.titlesearch, me.replay_gain, me.replay_peak, me.musicbrainz_id, me.extid, me.title FROM albums me WHERE ( id IN ( SELECT me.album FROM tracks me WHERE ( ( me.audio = ? AND