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 (45180,6609,18286,44856,13922,45516,28313,44858,18237,45051,44764,44851,44837,34194,44855,44685,45515,17771,44870,18688,39676,24412,18353,18430,44869,44671,44849,17835,10402,14622,44863,17981,18172,44867,13988,44762,18446,45346,18794,44865,5388,44853,18042,17351,44835,17278,18427,44873,17335,5259,17114,18900,17848,44766,19057,24411,45042,45229,17601,44739,18996,45072,37267,44894,44866,18301,44875,37057,44884,17756)
Unknown column 'np.person' in 'where clause'