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 (45229,44845,45051,44878,22509,17703,45517,17527,44856,44764,18794,5259,37267,44768,45072,18185,18427,13922,44836,44689,4765,17756,44854,18652,18900,17755,45180,45346,45277,13425,17092,18981,17335,3,44674,17351,44767,44685,45286,17904,44894,45177,18648,44858,14402,44865,17771,45043,18301,37057,18172,17839,4686,18719,44851,43800,44739,44837,6782,44868,3883,45516,17114,44870,44853,16885,19078,13,44669,18286)
Unknown column 'np.person' in 'where clause'