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 (17981,44849,17335,45042,17092,18650,44837,44856,44845,44687,17351,44766,43800,44836,17009,44865,17237,17114,17755,45517,44858,18286,4686,44869,30963,24411,45043,17703,17657,18042,45262,18430,44867,6862,18794,18446,44870,45561,44711,45277,37267,44640,44762,18688,17839,5259,17556,8753,39676,45346,45180,18981,13922,17601,30986,14622,45229,6782,6609,31354,13988,18652,45072,17492,17904,22509,45177,18648,24412,44863)
Unknown column 'np.person' in 'where clause'