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 (18279,18301,44849,44855,44866,36472,45286,6609,45177,17351,37057,44863,17601,13425,17756,8753,45515,18719,18446,44767,17848,17703,44768,44836,24441,44764,19078,44870,37267,24438,45180,44762,17904,22509,17114,17492,39676,44687,4686,18688,45346,19057,18652,18042,9341,17278,45517,17755,18794,44867,30135,17981,45043,4765,13988,18172,5410,17839,44674,17771,44765,28313,45567,17335,18430,44845,32454,45277,10402,44766)
Unknown column 'np.person' in 'where clause'