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 (44764,18652,44531,44745,18894,17904,18427,44836,16935,18981,45229,43800,18185,5410,44858,5993,3883,44865,44884,17657,44869,44711,44767,18648,45051,45567,44835,13425,18353,17756,44669,13988,45346,44868,17703,32454,45043,30963,17237,44689,45515,17335,44867,9341,3,45277,44848,18794,5259,44768,44856,44873,45286,28530,44854,8753,37267,18996,44855,18572,17092,18430,17492,17848,6862,4686,37057,19057,44875,18301)
Unknown column 'np.person' in 'where clause'