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 (17657,18894,37267,45043,36472,8753,14622,14402,17703,19078,45180,17351,45262,6875,44861,44711,45516,44687,5388,45051,28530,44775,44848,44866,44865,16935,9341,44856,18279,13,17771,44685,18430,17755,45229,17835,44674,45517,17527,18996,45346,17981,18427,18719,45515,44868,10402,44768,44855,18286,13922,18172,30135,45421,44640,44869,44867,44854,45072,18237,17904,31354,6782,44870,17839,18648,44762,18688,6609,19057)
Unknown column 'np.person' in 'where clause'