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 (17835,44854,19057,28530,45277,8753,14622,44858,44856,5259,17092,18652,18427,10402,45516,24411,6875,44845,45346,37267,17114,44837,44762,45262,18353,32454,17601,13,44863,17657,45177,17351,44640,30986,44768,5410,44765,44866,44689,45517,17756,44687,5388,36472,6609,18172,18894,3883,5993,18301,45042,44867,44766,18650,44848,44851,44767,14402,18042,44775,17335,44861,44853,28313,6782,18719,45180,44869,44884,44669)
Unknown column 'np.person' in 'where clause'