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 (44711,17601,44764,18894,44835,45262,18996,44768,24412,45177,18279,45277,45515,44865,18427,37057,4686,44845,10402,18185,30986,18650,44870,13425,45421,44671,44766,44687,17703,17981,44856,17278,30963,32454,45043,44836,5388,18794,45286,18172,44869,45517,45561,13,19078,44531,44858,18286,3,45180,44775,18652,14402,17237,44851,18237,44767,44669,6875,44762,24438,17755,30135,44884,18446,43800,44878,45346,16935,17114)
Unknown column 'np.person' in 'where clause'