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 (44766,31354,24411,14622,45072,17756,44861,18185,44856,36472,18996,17703,44687,18172,34194,22509,17335,45180,17092,45043,45286,17904,18650,17278,18648,44836,44858,3883,24438,18572,14402,44866,18981,18719,4765,17981,44845,13425,45515,44764,45277,18427,37057,17237,44869,17755,45177,45042,5388,45229,44640,45561,44870,44894,17771,45517,44739,18446,44685,17351,44851,18353,45516,3,5259,17839,24441,44865,17527,17556)
Unknown column 'np.person' in 'where clause'