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 (17904,8753,17335,5388,17755,44865,24438,44745,13988,44858,44851,18427,36472,5410,45262,44869,17492,44854,45286,13425,45516,30986,45346,44669,18652,45042,45072,44765,3,44764,17278,32454,17601,44836,17981,44674,18900,18719,44853,17092,18185,10402,4686,18172,17527,18688,24412,18237,44766,44867,45229,44866,44856,3883,45515,17703,18279,45567,17009,44689,18996,24441,17848,37267,45177,45561,18572,14402,44849,18894)
Unknown column 'np.person' in 'where clause'