Query failed (SELECT id FROM dances d INNER JOIN publications p ON d.publication=p.pub WHERE NOT hidden AND ( adaptor1="John Playford" OR adaptor2="John Playford" OR adaptor3="John Playford") AND hasMusic ORDER BY p.sortPublication, sortName, name): Column 'id' in SELECT is ambiguous