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 (17601,45262,45180,44865,44835,18996,24411,45518,45177,24438,44845,44836,45072,17492,45229,18185,28313,8753,45561,44767,18237,45043,6875,13922,30986,45277,28530,17092,18279,17904,44848,18286,44849,44853,45567,4686,37267,44674,18794,30963,44884,5410,18430,44875,18652,44689,18427,6782,44854,34194,36472,16885,44739,44870,14402,44671,39676,17756,44868,18688,10402,13425,44766,43800,24412,45516,44867,17981,45051,6609)
Unknown column 'np.person' in 'where clause'