Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (5259,18572,8753,44868,10402,44640,18042,18353,5388,14402,45346,44674,44775,45286,44856,18446,44764,3,44873,44853,44855,45051,18430,44669,44767,44745,3883,44869,30963,45421,17114,44867,4765,17335,45277,18981,44685,6875,44858,34194,17092,30135,45262,44854,45043,18237,18427,44845,44894,37057,44870,5410,45180,18688,6782,37267,18652,45177,44884,16885,44836,44866,45515,18996,17492,17981,17848,45517,44765,28530)
Unknown column 'np.person' in 'where clause'