Could you help me with the following oracle sql query.
SELECT "NEWS"."NEWSID" as ID, "NEWS"."SLUG", "NEWS_TRANSLATION".*, (SELECT FILENAME FROM NEWS_MEDIA WHERE NEWSID = ID AND rownum <= 1 ORDER BY POSITION ASC) as FILENAME FROM "NEWS" INNER JOIN "NEWS_TRANSLATION" ON NEWS.NEWSID = NEWS_TRANSLATION.NEWSID WHERE (NEWS.PUBLISH = 1) AND (NEWS_TRANSLATION.LANG = :lang) ORDER BY "NEWS"."NEWSID" DESC;
When I execute this request, I have an error
ORA-00907: missing right parenthesis 00907. 00000 - "missing right parenthesis" *Cause: *Action: Error at Line: 4 Column: 74
rtyshyk
source share