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 (13425,18794,18652,44687,30986,44640,44836,44739,44768,44863,34194,18301,44870,17335,44689,44856,18172,17657,18185,45180,44835,45567,18430,36472,44867,44711,17237,5410,18900,45043,30135,43800,17492,44861,44849,44837,44845,3,17092,18427,17756,24412,44851,37267,44894,24438,39676,18237,17351,13,44671,6609,44531,17981,18446,45421,6782,17556,44884,17904,44775,17703,45177,18353,45517,28530,31354,44685,8753,18894)
Unknown column 'np.person' in 'where clause'