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 (17839,44875,45177,44766,44767,17904,44863,17755,44671,17756,44835,18427,18688,18572,17703,45229,18286,44867,10402,17237,18648,18237,39676,18430,18900,44849,4765,44870,45567,9341,30963,34194,44669,44531,18042,13425,44894,37057,44674,28313,44745,13,13988,45051,18301,44739,17335,44762,44865,14622,44775,44768,24438,18996,6609,18172,45346,44687,44765,17981,44868,44866,44856,17527,6782,36472,44848,43800,45180,45042)
Unknown column 'np.person' in 'where clause'