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 (44851,44739,18185,19078,44689,45277,17981,18981,3883,18900,44870,45042,45229,44766,17771,18286,5993,44775,16885,37267,44861,24412,30135,36472,17114,32454,6609,44848,44837,44765,18427,8753,18446,45072,44878,17092,44854,24411,44853,44863,18719,44711,45567,44671,43800,45518,24441,44866,3,44858,14402,45517,45515,14622,17237,17904,45262,17009,18794,5259,17335,18301,18353,44687,30963,28313,18430,45421,44855,44768)
Unknown column 'np.person' in 'where clause'