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 (45421,6782,28313,17755,18427,44878,45277,24441,17527,24438,18981,37267,44849,16935,44894,18430,28530,45180,18446,44867,17351,6875,18650,43800,14622,3883,44766,13425,44837,18794,31354,44863,44669,13,17335,45072,19057,14402,17601,44884,5410,44711,17703,45516,44848,44851,18900,19078,24412,17556,45518,17009,18185,18688,17981,44858,6609,44674,5259,44768,45262,3,5388,17771,34194,44767,30963,44861,44870,13988)
Unknown column 'np.person' in 'where clause'