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 (32454,17092,18652,45262,17335,8753,19078,45567,18279,18427,18172,44764,17839,44894,17848,44853,30135,45277,45516,5993,13,14622,44711,44855,44766,17756,17527,45229,36472,44739,17601,44851,45515,44837,37267,44674,6862,18996,5410,45043,24438,18688,18286,44765,43800,44640,45518,45421,4765,17657,44873,44866,44768,17237,14402,5259,44870,45051,44836,44856,45517,44875,18353,3,24441,17278,18794,22509,17351,44775)
Unknown column 'np.person' in 'where clause'