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 (45518,37267,18446,17703,45561,4765,44866,17009,17904,44851,5259,6609,30135,17756,16935,45277,18688,17237,44766,45051,3,31354,44865,18648,18794,45517,18042,18353,17335,45346,44863,18286,18185,39676,17492,44669,24411,4686,44856,18430,44689,17556,45262,5388,45567,44875,45043,18572,17601,37057,6782,44894,45177,17848,44848,44837,44687,44764,44640,18301,3883,24438,18279,24441,44671,44853,45515,44768,18981,10402)
Unknown column 'np.person' in 'where clause'