Query:
SELECT  c.title AS title
            , c.introtext AS body
            , c.state AS state
            , c.created AS created
            , c.created_by AS uid
            , c.modified AS modified
            , c.modified_by AS modified_uid
            , c.published AS published
            , c.published_by AS published_uid
            , jos_categories.title AS category
FROM
          jos_content AS c, jos_categories
INNER JOIN jos_categories AS jc
ON c.sectionid = jc.section
WHERE c.sectionid = 7
I am sure that sectionid column exists, but I am getting error:
Error Code: 1054. Unknown column 'c.sectionid' in 'on clause' 0.000 sec
I saw this topic: MySQL unknown column in ON clause but I can't solve it too.