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 (44865,44775,17492,18894,45567,17981,18650,44856,19057,45043,44863,6609,44867,44851,14402,18430,44878,18237,17092,17755,30135,18286,44853,5410,18185,45421,13,17278,17839,39676,17114,18648,18279,44870,18900,31354,44845,28530,18446,44884,5993,44768,17771,4686,24412,22509,3,4765,17335,45229,5259,37057,34194,10402,45277,17848,37267,17601,18981,44894,45346,44640,6862,44855,17009,18719,13988,44745,45517,16935)
Unknown column 'np.person' in 'where clause'