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 (44762,18446,17835,37057,18648,45516,45561,6875,8753,17839,18996,45517,44689,44768,44875,13425,24412,44867,45262,24441,16935,44873,5388,44836,44856,44767,44845,24438,18900,17114,44853,39676,18237,17756,18688,18172,4686,16885,44858,44766,31354,5410,10402,44685,44868,44884,17237,5259,17981,6609,34194,17092,37267,18279,44739,6782,17351,18652,18301,45051,36472,45346,18427,18981,9341,44835,18430,19078,18185,17556)
Unknown column 'np.person' in 'where clause'