เนื้อหาที่เกี่ยวข้อง
Database Error! 1054 :
select * from ( SELECT ID, c_title, c_description , c_detail, termID, author, section, modified_date, view_stat, stock, is_highlight, is_gossip FROM content as c, terms as t, terms_relation as trc where section='news' and c_status='publish' and modified_date < DATE_SUB(NOW(), INTERVAL 1 HOUR) and (c.ID=trc.relate_content_id and trc.relate_term_id=t.termID ) and t.termID=n and modified_date<"2022-11-17 11:32:56" order by modified_date DESC, ID DESC limit 5 ) as tpl group by ID order by modified_date DESC, ID DESC
Unknown column 'n' in 'where clause'