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,45051,44837,18900,36472,18719,44861,18430,17703,18279,17981,17092,18794,44866,44853,18042,45561,13922,24411,32454,45042,44531,45567,45421,44766,43800,45517,18286,18572,45043,44739,14402,3,18185,4686,9341,44764,17527,30986,45072,18996,44878,44689,17835,28313,16885,6862,44856,5388,45229,44745,18301,17114,17601,44884,44854,18688,19078,34194,17848,44687,44671,17009,17756,45177,44848,8753,18652,30135,18427)
Unknown column 'np.person' in 'where clause'