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 (17114,17092,45180,18172,44865,45072,6862,45346,30963,18996,17351,18279,18427,18688,34194,17657,13922,44849,44856,4686,13425,18353,44845,17703,30135,44764,18430,18652,3883,44870,45286,44768,17756,45229,44767,6609,17237,44854,28313,39676,14622,44873,44875,18981,44851,6782,37267,44858,45043,44836,45561,8753,44869,44711,16935,44739,4765,45517,44884,17771,18185,44687,13,45177,44674,45277,17835,45515,44765,44775)
Unknown column 'np.person' in 'where clause'