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 (45072,30135,18719,22509,44853,44878,31354,17492,44739,24441,6609,44764,18650,44851,18286,17237,5259,45229,45518,44870,17981,45262,18237,44884,45286,44685,30986,18894,32454,44856,17601,44669,37057,45567,45042,44894,45177,45051,13922,18981,18430,45277,17756,17335,18353,44767,44640,17114,13988,44866,19078,44867,45516,24411,17351,5410,44689,18427,8753,44775,6782,45421,45515,44745,44869,28313,18688,17835,10402,18900)
Unknown column 'np.person' in 'where clause'