https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26567 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl Status|Signed Off |In Discussion --- Comment #13 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- q| INNER JOIN (SELECT DISTINCT subscriptionid FROM subscriptionroutinglist) srl ON srl.subscriptionid = subscription.subscriptionid|; This looks a bit odd? Couldnt you LEFT JOIN subscriptionroutinglist AND GROUP BY subscriptionid and WHERE srl.subscriptionid IS NOT NULL ? Or without a GROUP BY something like: LEFT JOIN subscriptionroutinglist srl ON srl.routingid = ( SELECT routingid FROM subscriptionroutinglist WHERE srl.subscriptionid=subscription.subscriptionid LIMIT 1 ) -- You are receiving this mail because: You are watching all bug changes.