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 (17755,44762,17092,17351,22509,45567,18894,18446,17009,4686,8753,18042,45346,44835,45229,44870,44853,18900,45421,24441,13,3,44849,19078,44873,18427,44687,17771,44674,18172,16885,45515,44669,43800,44836,44766,44767,17278,45516,24438,18794,44671,18301,44861,18981,44894,45262,44866,5388,37267,4765,37057,44878,17114,39676,44640,44884,18652,44858,18688,10402,45277,44854,44685,18185,18237,18996,17756,6875,31354)
Unknown column 'np.person' in 'where clause'