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 (17092,17335,5993,44867,45072,44853,18648,44711,18185,17114,24438,18237,17835,4686,19057,44856,44858,34194,18286,44689,18301,44674,45177,30986,45567,45043,45346,44768,17848,14622,44764,6862,44762,45515,36472,18652,44849,24412,44671,4765,44894,44869,39676,18279,5259,17351,18446,44766,18894,44767,44848,22509,9341,45518,3,45286,18996,18430,44739,44873,17981,45516,44836,44765,37057,3883,45517,45262,24411,18572)
Unknown column 'np.person' in 'where clause'