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 (44868,36472,44674,17601,44869,44764,45567,44767,30135,18648,24441,18794,3,14402,28313,44685,45346,17556,44858,18172,45516,18185,44870,44878,5259,18996,28530,10402,16935,18650,17527,44863,45517,45042,18430,17755,9341,45277,44866,45561,45043,22509,44865,18572,17904,30986,44856,37057,18446,44884,17335,31354,17351,17835,17092,17703,6782,18301,44669,44671,45180,18894,18286,17756,45518,44762,32454,17278,45229,44640)
Unknown column 'np.person' in 'where clause'