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 (45229,18427,44894,45177,5993,18794,18652,44685,45567,18446,17114,45346,24411,44766,3,44848,44849,44775,24441,45421,18185,10402,44669,44856,37267,28313,17556,6862,44866,18237,44851,45051,6609,22509,45180,44861,17904,44711,28530,44884,44878,44768,44674,19078,9341,44835,17755,45277,18430,17703,44689,44739,45516,17335,17657,17009,17092,17981,44865,44873,5259,5388,43800,18286,44853,45043,17237,3883,17278,30986)
Unknown column 'np.person' in 'where clause'