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 (44531,44854,44855,44866,44870,17335,28313,6862,18572,3883,44674,18652,17839,31354,44687,8753,28530,45421,18185,44711,45346,18430,45517,17351,17114,44867,18894,44765,22509,17904,44869,34194,18353,43800,44685,17835,18794,44851,44762,6782,18427,44640,18042,44836,17092,18172,19078,45567,17981,44858,44875,19057,13988,17009,18900,45229,44853,13425,18719,45043,16885,37267,44837,39676,13922,14622,18688,10402,18650,45561)
Unknown column 'np.person' in 'where clause'