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 (45072,16935,44863,44855,45051,18185,13,18279,45567,44873,45286,17237,17848,16885,17755,6782,39676,18652,43800,30135,44764,18648,18794,34194,17771,18446,9341,18996,45180,31354,17703,8753,44869,28313,10402,24438,44711,30963,17839,24412,37057,5993,18572,17904,17009,44870,44856,18900,18650,18286,45277,44767,18719,45516,4765,44836,17335,5388,17556,44765,17114,45515,30986,44853,14622,44640,19078,18301,17981,44766)
Unknown column 'np.person' in 'where clause'