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 (44765,36472,45177,18794,45043,10402,18900,17839,45229,44894,17835,45518,28530,17981,44856,18279,45180,18652,37057,14622,18353,18894,13922,37267,17601,44764,24412,45051,44870,45042,44689,45346,44863,9341,44669,44837,17703,30135,44745,13,17009,44868,44851,44848,22509,17527,17771,44762,44767,43800,44711,4765,17114,6875,45072,3,5388,44768,44873,18981,44766,44875,19078,18301,44866,44865,4686,17237,18185,17492)
Unknown column 'np.person' in 'where clause'