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 (16885,45421,37057,44868,6782,44875,18650,44858,17278,28530,10402,4765,17756,44878,45051,17492,6875,14402,14622,5410,45346,30986,18981,18042,45072,17904,44739,18353,24411,44669,17237,3,37267,18794,34194,18301,45262,44861,44894,18237,18652,17114,44674,17981,44863,18648,44873,18172,6862,45043,44764,44848,8753,30135,44856,44849,18185,45567,36472,44775,17771,39676,13425,16935,22509,44835,45042,18572,18446,44853)
Unknown column 'np.person' in 'where clause'