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 (17981,18279,44861,18719,17278,45180,44848,45043,44768,17527,30963,28530,10402,44856,18172,44835,45277,44867,44671,17601,44865,44875,18185,37267,44849,30986,45229,44765,44531,18648,44640,44870,45177,19057,44863,28313,18900,44853,18353,18688,44766,44674,44669,45286,18981,44845,24438,36472,44869,44854,18286,17351,17009,44894,17237,3,8753,17335,13425,17904,34194,30135,44858,45567,17755,6609,6875,5410,45516,18572)
Unknown column 'np.person' in 'where clause'