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 (17835,18172,44711,44745,30986,45072,24438,39676,37267,44835,24441,36472,6782,44856,44669,28313,3,44848,28530,5993,44868,44674,44767,34194,6875,24411,5259,37057,19057,18427,18719,13922,45515,17755,44775,17848,31354,13425,17237,45516,17756,45043,13988,17601,17771,44671,5388,45277,44854,17556,4686,18650,4765,17981,10402,44870,44873,44766,18794,44869,14622,8753,44858,45421,45286,44837,18301,18185,44894,3883)
Unknown column 'np.person' in 'where clause'