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 (45277,44854,18572,44863,17657,44674,18794,44873,17278,19057,44867,18279,14402,18981,6782,18719,44764,44837,45567,45561,44745,17904,39676,5410,44855,44689,17601,45051,8753,18900,44861,44836,45346,18430,44849,45043,5993,18286,44853,44531,5388,45177,17755,44868,18446,17237,44870,44845,44858,18996,19078,17703,17009,22509,44767,36472,45229,4686,5259,17556,6862,18427,44671,44865,34194,44835,45180,30135,18172,13425)
Unknown column 'np.person' in 'where clause'