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 (44711,43800,19078,37267,18172,45518,17771,45051,44865,44674,18286,3,45346,36472,44775,44884,44766,6609,45180,17904,44869,31354,24438,17657,34194,44835,17492,18652,18279,44870,45262,44873,44687,24441,14622,44875,44851,44836,18794,45177,18042,32454,18446,16935,17527,17009,6782,44878,16885,17092,37057,45277,44854,44849,17981,45043,17351,5410,5259,44531,44669,10402,30986,44765,4686,44894,18353,17839,5993,18688)
Unknown column 'np.person' in 'where clause'