Open GoogleCodeExporter opened 8 years ago
Forgot to post the error ;)
Here it is:
poligon=# SELECT COUNT (*)
FROM "news_article" , "tagging_taggeditem"
LEFT JOIN "news_article_translation" AS "news_article_translation_pl"
ON (("news_article_translation_pl".master_id = "news_article"."id")
AND ("news_article_translation_pl".language_id = 2))
LEFT JOIN "news_article_translation" AS "news_article_translation_en"
ON (("news_article_translation_en".master_id = "news_article"."id")
AND ("news_article_translation_en".language_id = 1))
WHERE "tagging_taggeditem".content_type_id = 12
AND "tagging_taggeditem".tag_id = 1
AND "news_article"."id" = "tagging_taggeditem".object_id;
ERROR: invalid reference to FROM-clause entry for table "news_article"
LINE 4: ON (("news_article_translation_pl".master_id = "news_article...
^
HINT: There is an entry for table "news_article", but it cannot be referenced
from
this part of the query.
Original comment by pan.piel...@gmail.com
on 11 Dec 2008 at 3:03
Original issue reported on code.google.com by
pan.piel...@gmail.com
on 11 Dec 2008 at 2:49