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 (44765,44861,45518,30986,44863,44671,44767,17703,45421,44669,30135,18981,19057,45516,44711,14622,44854,18794,17237,14402,6875,19078,17904,45561,13988,18650,34194,45286,44878,44865,18900,44640,45229,44853,36472,3883,44866,45346,37267,44775,18427,44531,24438,44868,44894,18688,45277,18572,44739,10402,18172,44869,45051,6609,17335,5993,39676,3,18301,17492,44837,44674,44867,44836,28313,18719,43800,44870,18446,16935)
Unknown column 'np.person' in 'where clause'