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 (45042,45517,45043,44689,17114,18353,17351,18719,5410,17237,6862,17556,13988,17492,22509,18794,28530,24411,44765,45229,45421,4765,17771,9341,44878,18894,34194,13,19078,44861,44884,18301,44766,18648,18430,44863,18279,18688,17601,17703,45346,24412,19057,45567,44836,18446,45072,44894,44768,44671,44870,44851,45180,18900,45177,14622,45286,18981,32454,16885,45051,4686,28313,44867,44869,18650,45516,44674,17835,37267)
Unknown column 'np.person' in 'where clause'