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 (17981,14402,45043,18042,37057,44687,45567,44856,44767,17114,44867,44669,36472,13425,45262,6875,18430,44764,19057,17527,4765,44765,44762,17771,18237,45517,18648,18981,18652,28530,18446,44870,44671,44866,17839,45515,5410,44837,44685,17492,17092,28313,30135,18172,18353,17351,19078,18427,10402,9341,44640,44766,17601,45229,18688,44858,44739,45072,44689,45561,14622,44865,5993,18996,44873,17556,44745,45346,34194,17835)
Unknown column 'np.person' in 'where clause'