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 (44669,34194,10402,19057,17771,17335,5410,44854,45072,18237,17755,44884,45421,6875,44853,17092,17981,30963,44765,45042,44894,30135,44868,45180,44711,4765,24411,44856,18688,44768,17904,44685,37267,44870,17556,44858,18185,8753,45567,45515,18279,18301,18572,44866,13988,44869,22509,5388,44837,44739,44640,18446,18353,45277,45051,17835,39676,17848,32454,44878,17114,6862,18427,24412,45286,44863,44835,44861,44766,44767)
Unknown column 'np.person' in 'where clause'