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 (45567,44861,45286,37057,44870,44685,18894,6782,32454,18650,44711,44835,18794,44858,44869,44863,17114,44867,45051,17756,44640,18172,16935,44853,45042,17755,18286,44669,44878,14622,45277,44854,5259,28313,44689,22509,44866,17278,17703,45043,24412,36472,18996,18353,44884,44531,45177,45421,45229,17848,44837,13,17601,17904,44762,18652,28530,8753,37267,4686,6875,10402,44768,45517,13922,44766,6609,24441,3883,43800)
Unknown column 'np.person' in 'where clause'