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 (44739,32454,45567,17492,44745,44671,45516,17601,13,45043,17335,17756,44853,45229,37267,44863,45421,18301,17771,17755,18353,44894,4686,37057,44870,44765,44687,44851,18894,44835,19078,45517,17981,13988,44873,28313,13425,44849,18648,17237,10402,34194,5259,44767,44855,6875,17657,4765,45177,18430,17904,45262,6862,45180,45277,44764,44836,14622,17092,18172,28530,44884,18688,44711,18794,44869,5410,45042,18719,17114)
Unknown column 'np.person' in 'where clause'