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 (45277,3883,45517,18794,44837,17835,45262,44863,6875,30986,5259,44767,44867,44865,18650,44854,31354,18353,17657,6609,17351,44768,18279,17848,18446,44764,5410,45286,14622,18042,44739,45051,13,36472,44875,44866,44711,17335,45180,16885,17703,45421,43800,44689,28530,44870,44836,17009,45042,45516,18237,17114,17601,19078,18286,18719,19057,45567,44861,4686,44687,18572,6782,3,45043,44884,18894,45518,24412,44858)
Unknown column 'np.person' in 'where clause'