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 (44768,45072,10402,44674,17351,17848,44863,45262,18279,45042,44762,17527,44835,18648,30963,24411,5993,32454,16885,17835,17839,6609,18427,18794,37057,5410,13988,43800,9341,45518,44867,44853,45277,44861,18719,45516,5259,45177,44870,13922,5388,44875,17703,18650,45043,18185,17092,24412,18430,18237,18042,45567,44767,44849,44745,28313,44868,45286,17335,17904,44854,44640,19078,17009,44869,44671,18652,39676,6875,45517)
Unknown column 'np.person' in 'where clause'