Query failed (SELECT id FROM dances d INNER JOIN publications p ON d.publication=p.pub WHERE NOT hidden AND ( publication = "Preston\'s Twenty Four Country Dances for the Year 1800" OR adaptorPublication="Preston\'s Twenty Four Country Dances for the Year 1800") ORDER BY p.sortPublication,sortName): Column 'id' in SELECT is ambiguous