【问题标题】:#1054 - Unknown column 'content_type_video.field_video_file_fid' in 'field list'#1054 - “字段列表”中的未知列“content_type_video.field_video_file_fid”
【发布时间】:2015-10-04 14:04:29
【问题描述】:

以下查询返回上述错误。我认为这是一个别名错误,因为该列在那里,但我无法从有关此错误/主题的其他帖子中弄清楚。在我添加第 11 行和第 21 行之前,查询工作正常。任何帮助表示赞赏。提前致谢。

SELECT 
    node.uid AS uid,
    node.nid AS nid,
    node.vid AS vid, 
    node.title AS post_title,
    node_revisions.body AS post_content,
    FROM_UNIXTIME(node.created) AS post_date,
    users.name AS post_author,
    content_field_date.field_date_value AS publish_date,
    content_type_article.field_article_publication_value AS publication_name,
    content_type_video.field_video_file_fid AS fid,
    term_node.tid AS tid
FROM node node
LEFT JOIN node_revisions ON node.vid = node_revisions.vid
LEFT JOIN users ON node.uid = users.uid
LEFT JOIN content_field_date ON content_field_date.nid = node.nid
LEFT JOIN content_type_article ON content_type_article.nid = node.nid
LEFT JOIN term_node ON term_node.nid = node.nid
LEFT JOIN files ON files.fid = content_type_video.field_video_file_fid 
WHERE 1
ORDER BY post_date DESC

【问题讨论】:

    标签: mysql drupal-6


    【解决方案1】:

    你没有加入一个名为 content_type_video 的表,你在加入条件中引用了这个表

    【讨论】:

      猜你喜欢
      • 2020-10-27
      • 2018-10-21
      • 1970-01-01
      • 2021-01-26
      • 2014-03-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-05
      相关资源
      最近更新 更多