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 (37267,18172,45277,17835,44884,45567,22509,45421,6782,6609,18648,30135,44767,45177,18430,44640,6862,24441,17771,18650,44854,44689,18286,44867,44711,44894,18279,44866,45561,44836,3,44764,17601,17657,44868,17904,17981,45229,13425,18185,19078,13,19057,39676,44865,30986,44875,17237,17556,17527,18996,44853,18900,18353,45043,18427,5259,17848,3883,5410,44739,34194,37057,17092,45346,4765,6875,17278,44687,18794)
Unknown column 'np.person' in 'where clause'