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 (44745,5410,44767,44689,44766,5993,44870,6782,44768,18430,37267,44711,17848,45286,44685,45043,18648,44884,14622,44861,45515,18572,44858,18353,37057,18794,44739,6875,45072,18286,44867,3,44640,45180,18427,18652,13988,45262,17114,44837,28313,44835,44687,44849,16885,3883,32454,17839,16935,45042,45518,19078,18688,44762,44873,44765,18279,44836,4686,17527,45177,24441,17092,44866,6609,17904,34194,18446,36472,18719)
Unknown column 'np.person' in 'where clause'