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 (5259,45042,17904,45286,18446,44894,44685,18894,44711,45043,3,45180,24441,17114,18794,18650,17755,43800,44848,44873,5388,44856,45277,44884,4686,44854,44866,44687,32454,36472,45346,17278,37057,5410,30963,18301,18427,17981,4765,24411,18185,44863,45072,18652,16885,18688,44836,19057,18648,19078,6875,44868,44865,17848,31354,44875,22509,30135,18900,44858,44767,44775,44867,18719,37267,44869,28530,6609,45262,44878)
Unknown column 'np.person' in 'where clause'