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 (44766,17527,17556,14622,44861,16935,44640,17092,4765,45346,17351,45515,17981,44865,5410,18446,5388,18185,44669,45072,18237,44856,13,14402,44849,45516,6609,31354,44845,18572,44884,5993,18427,44767,44851,44689,18652,44866,17237,44867,30135,45229,18894,18648,44768,45042,6875,44870,18042,45277,44837,17278,18172,5259,44685,18353,13988,37057,18688,17009,30963,44894,44687,44858,44869,45180,44878,13922,17755,44873)
Unknown column 'np.person' in 'where clause'