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 (17771,44858,18648,17756,17601,17755,18301,44853,44775,17904,44836,44685,45518,44849,28313,18430,45277,6862,44867,36472,18172,28530,18042,44689,31354,45421,44767,45180,17009,24412,44875,24441,17092,3883,44848,5259,18572,44764,18279,17335,14402,44894,17703,17237,18981,44837,45229,18894,45042,9341,10402,45051,30135,45043,18353,44640,44855,44861,17981,45516,44856,17351,17278,5993,44687,13988,44531,5410,6609,44768)
Unknown column 'np.person' in 'where clause'