0

クエリ:

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

sectionid 列が存在することは確かですが、エラーが発生しています:

エラー コード: 1054。'on 句' の不明な列 'c.sectionid' 0.000 秒

このトピックを見ました: ON 句の MySQL の不明な列ですが、解決できません。

4

2 に答える 2

1

FROM句を次のように変更します。

FROM   jos_content AS c
INNER JOIN jos_categories AS jc 
ON c.sectionid = jc.section 
WHERE c.sectionid = 7 
于 2012-08-11T07:32:05.897 に答える
0

との間で結合を実行jos_categoriesjos_categories AS jcます。

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

しかし... c_jos_content

于 2012-08-11T07:23:20.327 に答える