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 (8753,17771,44869,6862,45516,45262,17278,44855,44884,45042,17981,9341,18981,10402,17335,17527,28530,13,16885,44858,44845,18652,44768,44669,18353,44851,24411,45180,44875,32454,5410,30986,37057,30135,13988,45346,24441,18279,45072,13425,18719,45515,18648,17009,17657,43800,17351,44849,34194,44853,17703,44867,44856,44689,18794,44764,18572,44854,44870,17904,18430,14622,44848,44766,44894,45517,44866,45561,4765,19057)
Unknown column 'np.person' in 'where clause'