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 (44866,14402,44766,17556,45516,45286,18353,18981,18042,17981,18172,3,18996,18652,17009,44848,44775,18279,34194,44849,44853,44768,13425,44894,45421,17237,16885,24411,18286,44739,17527,3883,37057,6875,18894,45277,45042,18688,14622,43800,45051,17335,18185,30986,44861,18430,18237,6782,10402,4686,17492,17904,6609,32454,45262,45561,45346,44764,44851,44854,17351,37267,44711,44767,9341,39676,17755,45072,44863,5388)
Unknown column 'np.person' in 'where clause'