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 (44858,44835,44739,45518,39676,18688,44869,17092,45180,44764,44674,28313,16935,19078,9341,45516,18719,17114,17335,4686,44873,44884,44870,8753,45051,44868,45517,6609,18981,17351,30135,44687,13922,44767,44867,17556,44745,18430,17771,17848,44851,30986,6862,34194,19057,45043,44845,17839,44775,45346,5259,10402,31354,18042,44711,14622,18572,44685,44848,30963,44768,17703,18353,3883,17601,45567,14402,44863,18427,18446)
Unknown column 'np.person' in 'where clause'