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 (17703,5410,45517,13,18652,37057,44764,13988,17237,44867,28313,16885,44856,44894,44855,44848,19078,18996,17848,24412,44669,44768,44870,22509,44866,45043,45421,45286,18648,34194,17771,6782,44767,17278,45229,44873,45180,3,4686,44845,32454,18353,18301,39676,44853,5993,17756,18688,44837,6862,45515,36472,8753,18279,17114,24438,18430,45518,10402,44875,18172,44689,44884,45177,17527,17092,45516,43800,18042,44762)
Unknown column 'np.person' in 'where clause'