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 (18794,44711,18981,17335,17278,44854,17657,16885,44671,19057,44861,44689,44674,17092,18650,45517,45262,18430,14402,44853,45229,17527,10402,44765,17904,17771,44869,34194,44775,18900,17755,44873,32454,44851,31354,44767,16935,43800,18719,44766,44894,37267,45277,36472,45042,45346,17351,44870,17114,44858,9341,18279,44685,44762,45051,18572,18427,45567,45072,4765,37057,18446,14622,18301,44687,13988,17237,44837,45421,44531)
Unknown column 'np.person' in 'where clause'