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 <= "2024-12-11 11:11:14" and i.icat in (8) and b.bnumber = c.cblog and (p.categories REGEXP "(^|,)2(,|$)" or i.icat = 2) and (p.subcategories REGEXP "(^|,)23(,|$)") ORDER BY i.itime ASC : Unknown column 'i.inumber' in 'on clause'