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 (6782,17237,5410,44739,18794,45229,45286,37267,45515,18279,17492,45518,45421,44894,18981,14622,28530,45517,44766,45051,18353,44868,18650,17981,44856,19057,44867,45180,37057,17756,17835,45346,44878,44845,18172,44869,44689,45567,17335,44863,36472,45262,44866,44854,17657,18042,18430,9341,30963,14402,17904,8753,17114,18185,18652,18900,32454,44875,3,34194,17527,6875,45561,24441,44851,18894,44674,18427,3883,43800)
Unknown column 'np.person' in 'where clause'