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 (44894,13988,36472,17351,44689,18572,44669,44870,39676,44869,44848,6782,18900,44854,45567,45051,16935,24412,5410,18430,44867,45517,9341,45043,18794,18185,44531,18286,14622,13425,30986,44835,14402,17278,17904,17755,44856,44837,5259,17009,22509,17848,18446,18996,44767,44764,44711,17556,45421,17835,19057,18427,17703,17756,44855,45518,24438,18688,17492,44884,17335,45516,44849,44687,44861,32454,44640,37057,44863,17237)
Unknown column 'np.person' in 'where clause'