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 (17839,44856,13425,18794,14622,43800,39676,13988,44851,44837,24412,44875,5259,18719,36472,17657,18981,44853,44863,17237,18648,30986,17771,17601,45051,45262,32454,30135,18279,17904,45177,18650,44764,17009,4686,44866,31354,45277,6862,44766,45515,44865,44873,44640,22509,44674,10402,18446,18286,18042,44854,17092,44868,18430,18172,44884,44768,13,18237,44855,17755,37267,44861,18652,34194,45043,44745,28313,44836,17527)
Unknown column 'np.person' in 'where clause'