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 (17009,28313,44689,45262,45072,44762,44687,44674,18301,44856,6862,45517,44849,30963,18446,28530,44768,30986,5410,18996,14622,44766,45229,6782,44868,6609,18430,16935,44873,18172,45346,4686,18981,45516,44854,10402,8753,4765,18652,44894,44685,44867,44884,45180,22509,30135,17237,17835,18648,17351,17848,18894,19057,17755,18353,43800,44865,13988,17556,44851,44861,6875,45561,17114,44866,44837,17703,44671,44711,32454)
Unknown column 'np.person' in 'where clause'