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 (45262,5259,10402,14622,18652,18286,18981,45567,44687,45561,17601,44851,24441,17848,44884,17335,44866,18042,17351,24412,45180,45346,30135,18794,18237,44875,44764,9341,44765,18900,44845,45042,17114,32454,45286,44674,17703,17556,18446,44868,5388,44835,13988,44531,24438,45277,44671,45051,34194,45518,17755,45177,45516,17009,45229,18648,18430,8753,18172,45072,18996,31354,44878,18572,6609,44837,37267,44865,44873,44767)
Unknown column 'np.person' in 'where clause'