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 (44878,28313,44855,13425,30135,17756,17335,5259,4686,18572,34194,44863,44858,44865,8753,5388,6862,17351,17092,44711,18996,44854,44870,36472,37267,17114,44869,44669,45517,45277,44767,16935,18446,44764,18719,44873,24412,6875,45042,44853,6782,44884,14622,44640,17848,44837,44866,44531,18650,44739,18894,37057,14402,18648,9341,44851,17009,18301,17278,44868,45561,44845,17703,44861,10402,43800,17237,17839,45567,18427)
Unknown column 'np.person' in 'where clause'