When I try to delete an Aggregator2 feed or feed-item I get an SQL ERROR as follows:
user error: Not unique table/alias: 'tn'
query: SELECT COUNT(*) FROM node n
INNER JOIN term_node tn ON n.nid = tn.nid
INNER JOIN term_node tn ON n.nid = tn.nid
INNER JOIN users u ON n.uid = u.uid
WHERE n.type = 'aggregator2-feed'
AND tn.tid = 2
AND n.type = 'aggregator2-item'
AND tn.tid = 2
in C:\Inetpub\wwwroot\tapenews000\includes\database.mysql.inc on line 66.
user error: Not unique table/alias: 'tn'
query: SELECT n.*, u.name, u.uid
FROM node n
INNER JOIN term_node tn ON n.nid = tn.nid
INNER JOIN term_node tn ON n.nid = tn.nid
INNER JOIN users u ON n.uid = u.uid
WHERE n.type = 'aggregator2-feed'
AND tn.tid = 2
AND n.type = 'aggregator2-item'
AND tn.tid = 2
ORDER BY n.changed
DESC LIMIT 0, 50
in C:\Inetpub\wwwroot\tapenews000\includes\database.mysql.inc on line 66.
Please note that in both cases the lines "INNER JOIN term_node ... etc" are concatenated with no space as follows:
INNER JOIN term_node tn ON n.nid = tn.nidINNER JOIN term_node tn ON n.nid = tn.nid
The whole story:
I am using Aggregator2 with Taxonomy-Theme (a combination that rocks, by the way).
I just discovered that I added the same aggregator2 feed twice, with a different path-alias each time.
I started correcting by deleting one of the 2 feeds, on the mistaken assumption that all the feed-item chldren would be deleted automatically. Mistake!