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 (24438,17839,18688,17904,24411,24412,30986,17114,44867,45517,45229,18172,18900,32454,44669,45346,6862,44861,44671,18185,13425,44875,18279,45051,17556,44854,45561,17755,17335,45177,44884,44764,18286,19078,18353,44765,18301,44848,18996,44762,44849,44870,37057,5259,6782,18042,39676,28530,17351,44869,45515,44640,44836,44863,17703,17009,45286,24441,44674,44845,17848,18237,37267,30963,18981,17981,5410,45516,45421,44873)
Unknown column 'np.person' in 'where clause'