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 (45043,17278,44745,44640,44739,5388,18172,5410,3883,44870,44867,13,45516,45346,44766,31354,44873,18286,18648,18301,18688,44848,18894,10402,4765,16935,45515,18185,8753,5993,14402,17601,17009,18279,44866,28530,44767,17703,37057,45051,17492,19078,24412,44894,45421,17848,44861,37267,44858,6782,44671,18794,17981,44685,44764,18042,44768,30986,45262,45229,18430,45277,13922,14622,22509,45517,28313,17335,36472,44884)
Unknown column 'np.person' in 'where clause'