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 (24441,19078,17755,44878,45421,44640,44853,18172,6862,17351,18719,17278,9341,44875,24438,45072,44837,44711,44868,44851,44685,45561,45277,3,45051,45346,13,4686,45262,16885,30135,44765,4765,14402,44855,44856,13922,14622,44674,44867,37057,17092,44873,17981,17904,18301,16935,22509,45518,18446,24412,17237,18996,18286,6782,5388,18427,45042,18652,44848,44766,43800,44866,18042,44687,44689,10402,18900,6609,17601)
Unknown column 'np.person' in 'where clause'