mySQL error with query SELECT DISTINCT i.inumber as itemid, i.iblog as blog, i.ibody as body, m.mname as author, m.mrealname as authorname, UNIX_TIMESTAMP(i.itime) as timestamp, i.itime, i.imore as more, m.mnumber as authorid, c.cname as category, i.icat as catid, i.iclosed as closed, m.memail as authormail, m.murl as authorurl, i.ititle as title FROM nucleus_item as i, nucleus_member as m, nucleus_category as c left join nucleus_plug_multiple_categories as p on p.item_id = i.inumber, nucleus_blog as b WHERE i.iauthor = m.mnumber and i.icat = c.catid and i.idraft = 0 and i.itime <= "2021-06-14 21:57:58" and i.icat != 8 and b.bnumber = c.cblog and (p.categories REGEXP "(^|,)6(,|$)" or i.icat = 6) ORDER BY i.itime DESC : Unknown column 'i.inumber' in 'on clause'