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,39676,30986,17601,44861,17756,44671,17278,18894,45515,45286,17009,44689,17351,5410,13425,5993,45262,34194,45277,18172,13,30135,44867,6782,18648,45516,45518,18572,44765,44884,44739,28530,17237,17703,44837,44835,4686,30963,44768,13988,36472,44745,45346,44767,17114,44855,18185,45421,17904,18446,44764,37267,24412,18301,6609,28313,17335,14402,19057,18981,44775,45042,44640,24411,10402,44845,18237,17839,22509)
Unknown column 'np.person' in 'where clause'