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 (16935,32454,18996,6862,44669,17657,10402,45518,44866,18900,43800,17351,44854,45262,17237,18894,30135,18279,44764,31354,45180,18981,44884,18572,44836,18185,17527,19057,44711,44894,24412,24411,45177,17771,5388,44868,18042,44835,44849,45346,45286,44873,18652,13,24441,44848,17114,44768,18719,18794,5259,17703,17335,30986,24438,44855,45043,45516,17492,6609,17601,5410,18430,14402,13425,44869,44767,3,44739,13988)
Unknown column 'np.person' in 'where clause'