Query failed (SELECT id FROM dances d INNER JOIN publications p ON d.publication=p.pub WHERE NOT hidden AND ( publication = "The second Part of the Dancing Master" OR adaptorPublication="The second Part of the Dancing Master") AND hasMusic AND hasKRCD ORDER BY p.pubYear,p.sortPublication, sortName, name): Column 'id' in SELECT is ambiguous