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 (18652,44767,44766,44765,17009,44764,37057,18427,44869,18286,5259,5993,6609,45043,44868,28313,3,18353,17771,44768,18719,30135,44640,44711,36472,17335,19078,18430,32454,44873,17703,45177,18237,44836,24441,19057,44849,45277,17527,3883,18648,44856,44845,44866,44863,17601,45346,17556,18688,44853,34194,5410,44689,4686,18981,17755,44762,17981,44687,13,16885,18301,45516,31354,45051,17278,37267,14622,45042,18900)
Unknown column 'np.person' in 'where clause'