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 (45421,44762,44768,45051,6875,17839,44766,16935,17755,17114,17756,3883,13922,45346,17335,45262,44640,18648,18794,13,17009,14402,30963,24438,17981,32454,18996,44873,36472,6782,44853,44711,22509,5410,13988,4765,17904,18572,44869,30135,44868,4686,44689,18427,17092,24441,44856,39676,17492,44845,45229,5388,17351,9341,45561,18719,44861,14622,13425,43800,5993,34194,18279,44875,18652,44848,44767,30986,18185,18981)
Unknown column 'np.person' in 'where clause'