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 (16935,44669,18572,17756,14622,37267,18648,18719,31354,18042,28530,18286,44861,24411,45277,45518,45517,19078,32454,44762,3,6609,18446,45516,45421,4765,18996,44866,44689,45229,45177,44764,44845,17335,18427,44894,45051,18185,17835,13988,44835,44837,17556,44836,17848,18301,6862,4686,5388,9341,44687,44875,44766,17981,44853,17527,44873,44671,18688,44878,18894,37057,24441,34194,45043,45072,45515,18172,17092,45346)
Unknown column 'np.person' in 'where clause'