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 (37057,18719,44884,4686,28530,13922,44836,44869,44851,14402,45517,44764,14622,13988,17904,17601,44861,44767,36472,5410,45567,44845,45180,16935,18996,45286,17755,44870,45515,44873,24441,45229,18172,44669,44856,18894,37267,30986,19078,3,45516,18794,28313,5993,17756,45051,5388,45346,45277,44863,30963,44878,44689,44868,18652,13,17009,9341,44858,44835,45043,44865,6862,17839,18900,18301,18185,5259,44866,18427)
Unknown column 'np.person' in 'where clause'