Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (44869,45516,17839,17335,45072,17351,45517,44873,44878,17092,17278,44837,44674,18430,18996,45346,17114,44894,44835,39676,37267,34194,44863,14622,17009,44853,13,44669,16935,44849,17771,4765,45180,44875,17527,17237,17835,6862,44765,44836,6875,44884,43800,18794,18652,45561,45043,13922,6609,17981,45421,10402,24438,45177,44868,6782,18237,5259,44854,36472,14402,30135,18286,18650,44531,45286,18353,5388,44855,17657)
Unknown column 'np.person' in 'where clause'