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 (44765,17756,44745,44894,44531,17981,37057,18427,3883,45516,13988,44867,17114,44849,36472,17904,18894,4686,45229,44870,5993,45043,44851,44835,16885,44878,18172,44768,44674,44687,44764,44669,13425,18572,44858,18648,44868,32454,17556,39676,17755,45072,18981,17335,5259,18446,30963,18794,44766,17092,44863,13,17601,44854,18286,34194,45262,17835,28530,18042,37267,45286,18301,44861,44853,17527,44689,45517,9341,45051)
Unknown column 'np.person' in 'where clause'