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 (44894,28313,18286,24438,6862,18981,45567,36472,45072,17755,44858,30135,44669,18572,13,44851,44745,44766,37057,3883,22509,44867,17848,5993,5410,44671,13425,24441,17904,44869,44762,45043,44870,17335,10402,44764,4686,17756,45518,5259,19078,45262,44767,44739,18650,18427,45421,44768,17351,16885,45517,17556,43800,44868,44861,44640,18719,44863,45177,17092,39676,45042,18301,44835,44674,18185,30986,44689,44685,17981)
Unknown column 'np.person' in 'where clause'