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 (37057,30135,44878,17981,18353,34194,45042,6875,17092,32454,18894,24412,45286,24441,18172,45262,44865,45051,44836,44711,18719,44766,19078,10402,44855,44867,17351,17771,44861,44873,44845,36472,18996,39676,44835,17556,45515,16935,44868,16885,44775,17657,4765,44685,18279,44765,44863,45177,45043,19057,17335,3,44884,44768,13425,44875,45180,17009,44851,14622,17839,13988,31354,45346,6782,17114,45421,18430,17904,44854)
Unknown column 'np.person' in 'where clause'