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 (32454,17601,8753,17771,18042,18185,45177,5993,44766,43800,28530,17848,45286,45043,44861,28313,18430,22509,45229,44739,44851,10402,5259,17904,45277,44531,45518,17835,45262,44835,44856,44863,18652,17335,4765,17981,24411,34194,44836,17092,45421,44745,44768,13,30135,24412,44884,44854,18427,17351,19057,37057,17114,44870,44765,18279,19078,17237,44775,3,18794,17278,18301,45561,44685,6782,44845,17657,45567,6609)
Unknown column 'np.person' in 'where clause'