> 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 me.year = ? AND samplesize = ? ) ) GROUP BY me.id ) )
> ORDER BY me.disc, me.titlesort COLLATE de_DE LIMIT 1001: '1', '2015',
> '16'
>
> Any hints why this SQL query isn't working?
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.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 = 1 AND me.year = 2015 AND samplesize = 16 ) ) GROUP BY me.id ) )
ORDER BY me.disc, me.titlesort COLLATE de_DE LIMIT 1001
> 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 me.year = ? AND samplesize = ? ) ) GROUP BY me.id ) )
> ORDER BY me.disc, me.titlesort COLLATE de_DE LIMIT 1001: '1', '2015',
> '16'
>
> Any hints why this SQL query isn't working?
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.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 = 1 AND me.year = 2015 AND samplesize = 16 ) ) GROUP BY me.id ) )
ORDER BY me.disc, me.titlesort COLLATE de_DE LIMIT 1001