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 (44855,17657,24412,44687,18894,17904,18427,17237,44873,44674,39676,18279,44863,45051,44685,18042,44764,44739,45262,6609,4765,22509,18301,17335,44640,44671,17755,18172,45229,44868,17092,13425,44867,18650,4686,17527,45346,30986,44878,18446,45177,44866,18353,17009,44869,16885,45561,17556,5410,34194,18430,36472,18237,17351,44856,13,24438,17835,18286,28313,5388,45516,18794,43800,17848,24411,44858,44766,18652,45277)
Unknown column 'np.person' in 'where clause'