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 (44873,18981,44766,16935,45277,44855,17657,8753,44856,18996,6609,6862,17335,18430,45262,13,44865,3,44849,17601,45177,18446,18648,44875,3883,28313,17771,5410,18279,17114,45072,17278,18172,17848,36472,17756,14402,44765,4765,18652,45421,43800,44767,30963,44869,17092,44853,18794,30986,45346,13425,30135,45567,45518,44878,5993,18900,9341,44669,18185,44870,18042,44858,44868,28530,44711,24411,17237,18353,17835)
Unknown column 'np.person' in 'where clause'