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 (8753,10402,44687,44873,44836,5410,14622,18900,44868,45177,36472,6875,6609,24411,45180,44851,17981,18427,37267,24441,37057,18185,44884,17848,44849,44767,18172,44674,22509,19078,45515,4686,17835,44856,44762,44711,44775,44861,44894,17771,44766,44854,24438,13988,44765,18301,45072,43800,17335,18286,18430,44669,13,45517,45346,18652,44764,18719,44865,44866,44835,44848,45277,17492,44870,45043,44689,44863,34194,44837)
Unknown column 'np.person' in 'where clause'