Unknown column 'a.type_id' in 'on clause' SELECT a.id 'articleid', at.id 'transid', at.title 'transtitle', at.language_id 'translang', l.label 'langlabel', l.value 'langicon', IF(at.language_id = 112, 1, 0) 'preflang', IF(c.Content_Id IS NULL, 0, 1) 'hascontent', c.Content_Html, IF(LENGTH(c.Content_Image) < 1, i.Content_Image, c.Content_Image) 'Image', UNIX_TIMESTAMP(IF(a.pubdate_start, a.pubdate_start, IF(at.modified, at.modified, at.created))) 'updated', pa.page_id AS 'pagetemplate', oc.priority 'objprio', obj.id 'objid', obj.name1 'objname', otyp.id 'objtypeid', otyp.plural 'objtypelabel', g.id 'agroupid', g.label 'agroupname' FROM ws_articles a, ws_articles_translations at LEFT JOIN ws_articles_groups ag ON ag.article_translation_id = at.id LEFT JOIN ws_content c ON (c.Group_Id = ag.group_id AND c.Lead = '1') LEFT JOIN ws_lists l ON l.id = at.language_id LEFT JOIN ws_content i ON (i.Group_Id = c.Group_Id AND LENGTH(i.Content_Image)>0) LEFT JOIN ws_pages_articles pa ON pa.article_type_id = a.type_id AND pa.site_id = 1 LEFT JOIN ws_objects_content oc ON oc.article_id = at.article_id LEFT JOIN ws_objects obj ON obj.id = oc.object_id LEFT JOIN ws_objects_types otyp ON otyp.id = obj.type_id LEFT JOIN ws_lists g ON g.id = a.type_id WHERE at.article_id = a.id AND (a.id = 22174 OR a.id = 22172 OR a.id = 22173 OR a.id = 22171 OR a.id = 22170 OR a.id = 22169 OR a.id = 22168 OR a.id = 22167 OR a.id = 22166 OR a.id = 22156 OR a.id = 22165 OR a.id = 22163 OR a.id = 22162 OR a.id = 22160 OR a.id = 22164 OR a.id = 22159 OR a.id = 22158 OR a.id = 22161) GROUP BY a.id, at.id, oc.object_id ORDER BY a.id ASC, hascontent DESC, preflang DESC | |