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 (45072,13988,18446,28313,45517,30986,18353,44762,44870,17092,19057,17848,44669,18650,44858,43800,45516,18652,44849,45042,44851,8753,45561,37057,18981,17601,13425,44861,44865,44894,18427,4765,6782,16935,32454,5410,44768,17755,45277,18237,44854,45043,18279,17771,18648,18185,31354,45346,44765,18794,45229,17351,3883,44835,18719,44873,14402,37267,45515,24411,17278,45177,44856,44766,44689,13,17904,10402,34194,17703)
Unknown column 'np.person' in 'where clause'