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 (44640,44768,8753,44870,44861,39676,36472,44849,44868,44766,17839,18185,17756,45286,18894,44687,45072,44745,17351,18652,18172,18572,45229,37267,44867,44863,13,45517,6609,30986,6862,6875,18981,45516,45515,45561,30135,44858,4765,5993,17904,37057,44764,44854,18648,44845,44878,18279,44836,44671,44866,17114,24411,16935,13425,14622,44767,22509,10402,4686,24438,19078,30963,28530,44674,45177,44856,44873,44875,18794)
Unknown column 'np.person' in 'where clause'