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 (44863,36472,44894,17657,13922,10402,44745,18794,22509,45515,45051,18446,18286,18430,44685,44762,6609,34194,18652,45346,24438,5259,17703,17755,28313,17981,9341,44853,30135,17237,8753,44764,45180,45421,17092,44875,3,4686,17848,43800,44766,18572,45277,44869,44836,44855,44866,18185,13,44868,44711,45561,45567,18996,44861,24441,45177,18900,17771,37057,24411,45518,24412,5993,44848,45042,18042,44867,18172,18279)
Unknown column 'np.person' in 'where clause'