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 (44858,44870,18430,44835,34194,31354,17601,45072,44674,37057,17771,4765,44855,28530,3883,44867,44851,4686,5410,44861,17278,17981,17335,18042,17527,16885,44894,18427,44866,37267,18719,44767,24438,18996,17756,18688,17657,44766,44768,45277,45262,44884,45515,17835,44687,17703,10402,17839,3,16935,45180,44848,17351,44765,45516,43800,45421,13425,44869,18301,45229,18981,17904,44856,6782,45567,44685,18648,9341,14402)
Unknown column 'np.person' in 'where clause'