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,9341,19078,6782,30135,28313,45518,17278,44764,44685,18446,36472,44765,18794,44878,17527,45346,17848,18042,44868,45229,44766,44836,17237,17092,17601,45277,17335,44865,44873,44674,44689,44884,24412,13425,13922,6875,45286,44711,18185,13,17009,18719,17351,44768,44849,17114,22509,45051,18237,17835,18279,5410,5993,44866,44851,18172,44762,44767,6862,18572,10402,18981,44669,18430,45421,44894,5259,18353,18427)
Unknown column 'np.person' in 'where clause'