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 (34194,44640,44711,17009,28313,45346,45042,45262,6862,18042,44875,17492,17351,17556,24412,24438,45277,13988,44766,44869,44669,44894,44685,44867,44745,37267,18430,45043,28530,44765,18286,17601,17703,18981,45561,44863,45421,18446,44861,17092,13425,17755,18794,5388,44851,18719,17848,3,43800,44775,44671,44866,44689,37057,5410,13,6782,18427,18894,24441,45517,44865,31354,44768,17981,17335,14622,45180,44856,44873)
Unknown column 'np.person' in 'where clause'