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 (18688,18353,44845,45042,17351,4686,17009,36472,17601,17848,18427,19078,17335,45043,45177,45421,18996,31354,5259,43800,18172,30986,44870,44685,3,44739,18719,16935,44764,45517,18430,3883,18185,44894,44531,8753,30135,44866,44768,45567,18301,5410,37057,45518,45515,24412,17237,13988,44854,5993,44765,44836,45072,18446,39676,17981,44766,45516,45346,44775,44837,17527,16885,44669,45051,44869,18237,13,44878,17756)
Unknown column 'np.person' in 'where clause'