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 (45518,44867,44863,18688,32454,17904,44640,31354,44687,6782,44767,14402,18353,44762,44849,3883,45421,17092,3,24441,44856,18894,17703,45177,18981,17756,45567,17601,44865,19078,17839,17848,17114,24438,44837,17527,45072,43800,13425,44884,18719,44894,18900,44861,45517,18446,45516,6875,36472,37267,17755,18172,44766,18430,28313,18794,16935,5388,30963,18301,45346,44858,30986,44853,18237,44835,10402,34194,44875,22509)
Unknown column 'np.person' in 'where clause'