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 (18648,9341,14402,6609,44640,18572,17904,44873,4765,44711,17835,44861,45177,44854,18446,44765,36472,24441,44674,18996,45051,10402,45262,17092,24438,44685,44531,44836,44687,30963,45180,18652,45277,34194,24411,44865,18719,18301,30986,32454,44868,18172,17237,17839,13988,44671,22509,17114,44853,17848,37267,45567,39676,16935,31354,44866,13922,24412,17756,13,18042,17981,45516,18794,44837,44884,3,5993,44767,44867)
Unknown column 'np.person' in 'where clause'