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,17904,43800,18427,44685,44873,18572,17351,44766,18900,6782,17556,44854,18446,18688,4686,39676,17703,44858,14402,44711,17756,44640,44868,18794,45516,17601,28530,44848,16885,24438,34194,13988,17237,44878,44851,18185,44767,19078,17278,28313,44875,44894,45262,44856,44861,45346,5259,17335,16935,44837,24412,17009,3883,44745,17755,18981,44849,6609,32454,45277,14622,44869,37057,45561,17839,18996,44836,44845,44762)
Unknown column 'np.person' in 'where clause'