sql - MySQl query problems -
I do not spend a lot of time in MySQL, but I have been asked to check a problem with my church website . It's been down for some time and I'm trying to take it back and run. The original site was made in Mambo 4.5.3, which is an old version. I will upgrade it to some point, but I want to run it for a while.
I currently have a problem with the membo that is created in the query below. Wherever the site tries to use pages, I get an error message:
unknown column 'c.'
I've verified that the column exists in the specified table. Now I'm stumped. I opened mysql query analyzer and pasted the query and got me the same error message with 1054 code. Anyone have any ideas?
SELECT c. *, As G.name as groupname, cc.name, u.name editor, homepage, s.title as SECTION_NAME, as v.name as author from mos_content as c, f .content_id mos_categories In the form of cic, mos_sections are in the form of g.id = c mos_groups on the left .access join the left. As the mos_users u.id = c.checked_out on the left v.id = Join as mos_users V as c.created_by Left as the mos_content_frontpage but join f.content_id = c.id where c.state & gt; = 0 and c.catid = cc.id and cc.section = s.id and s.scope = 'content' s.tle, c.catid, cc.ordering, cc.title, c.ordering LIMIT at 0,10
SELECT c. *, G.name GroupName, cc.name, U.name ADA Editor, f.content_id homepage, s.title as SECTION_NAME, as the author from mos_content, c. C_catid = cc.id on mos_categories cc As included in the intermediate cc.section = s.id mos_sections on the left as inclusion of v.name as mos_groups as soon as g.id = c.access was included in the mos_users. On u.id = left c.checked_out at v.id = c.created_by mos_users v as f.content_id = c.id where c is included left as the mos_content_frontpage .state & gt; = 0 and s.scope = 'content' s.title, c.catid, cc.ordering, cc.title, c.ordering LIMIT in 0,10
Comments
Post a Comment