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 (17278,6609,43800,44685,44866,18185,45515,37057,44863,17601,44848,17755,44884,13425,18172,45567,24438,17527,17703,45346,44687,16885,17981,24412,18279,18430,45262,18301,17335,44865,44836,18996,44869,10402,44849,45180,17114,39676,44640,36472,18688,13,5259,17009,17848,44855,18427,45229,30135,17835,6782,45072,18042,44867,45051,37267,44762,45042,44764,5410,17904,17492,45043,17237,44875,44873,44671,44669,5993,4686)
Unknown column 'np.person' in 'where clause'