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 (44861,45051,36472,17839,19078,28313,45229,17601,17237,44856,44765,45567,18794,17114,17335,44835,44766,24441,4686,18894,44775,44865,17527,45072,44671,45515,44745,17703,39676,45517,18185,44863,43800,8753,44884,45346,44849,45277,17556,14402,44669,5993,17278,45561,44836,18446,37267,13988,44689,44870,45180,18042,44768,44762,18430,44711,17092,44854,18652,44848,44674,44868,44837,5259,44764,44853,44867,18648,17755,24411)
Unknown column 'np.person' in 'where clause'