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 (44851,5993,44878,18185,14402,18279,44685,18900,17703,5410,18794,18652,19078,28313,24412,45561,45262,18446,18981,18719,45567,18172,24438,44863,37267,44858,44870,44861,44868,44739,45042,19057,44866,17657,43800,14622,44865,44765,44711,44674,17904,37057,17771,17981,44768,3883,17835,45286,8753,44767,45421,17092,44669,17114,44766,44884,4686,45051,44856,36472,18996,30986,4765,18353,3,18648,17601,44849,18237,17848)
Unknown column 'np.person' in 'where clause'