Another unknown column name error in ON clause

前端 未结 2 1505
失恋的感觉
失恋的感觉 2021-01-28 03:09

Query:

SELECT  c.title AS title
            , c.introtext AS body
            , c.state AS state
            , c.created AS created
            , c.created_by AS         


        
相关标签:
2条回答
  • 2021-01-28 03:50

    You preform the join between jos_categories and jos_categories AS jc:

    jos_content AS c, jos_categories
    INNER JOIN jos_categories AS jc
    ON c.sectionid = jc.section
    

    but c is jos_content...

    0 讨论(0)
  • 2021-01-28 03:56

    change your FROM clause to:

    FROM   jos_content AS c
    INNER JOIN jos_categories AS jc 
    ON c.sectionid = jc.section 
    WHERE c.sectionid = 7 
    
    0 讨论(0)
提交回复
热议问题