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 (6875,39676,17839,19078,44875,45567,17556,19057,17351,45346,30986,44845,44870,24441,17657,37267,32454,37057,44739,18430,43800,4686,17981,17904,17755,45561,5410,18650,44861,44836,3,45277,44849,34194,44869,45072,44775,44768,44853,44762,16935,18794,18572,44837,18652,45229,45516,18286,45177,18900,18427,44687,17527,5259,44866,44868,18353,44745,8753,5388,10402,44856,44711,24412,45180,24411,45043,18042,18719,44765)
Unknown column 'np.person' in 'where clause'