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 (30986,43800,44853,44768,30135,45177,18652,18688,6875,44851,9341,45051,18996,17092,24411,45229,18172,44685,5259,18981,34194,18301,44867,22509,37267,45515,44766,17601,45042,17527,45561,44855,17556,44868,44870,45180,44687,17009,44674,44845,44711,18572,18894,44875,37057,45516,44762,17835,28313,45421,44835,45043,18446,44849,24412,14622,44739,45346,44531,44669,17981,10402,44775,44767,39676,44894,24438,18794,17904,5410)
Unknown column 'np.person' in 'where clause'