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 (17527,8753,17657,18996,17351,17771,44894,44640,44851,18427,28530,14402,44766,44858,44855,45567,45346,45516,44674,24441,34194,36472,18794,44739,44531,13425,6862,45042,18688,37267,18981,45518,45561,19078,3,17756,44856,44687,24438,31354,28313,44849,32454,44767,18650,24411,45072,13,44870,44768,6782,45421,17703,18172,44873,17114,17335,44868,44837,9341,18648,13988,17092,17278,17848,17237,18301,4686,17981,44764)
Unknown column 'np.person' in 'where clause'