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 (4765,17755,44894,44768,16885,45421,18286,14622,17556,18301,44870,44866,45043,18237,44873,6609,44685,17335,45180,3,45518,45516,18427,39676,44884,34194,8753,18652,44766,18996,18650,44745,17009,44837,44869,24438,44765,18572,18185,31354,10402,44856,45177,44687,17839,17657,3883,30986,13,44849,44739,17114,17278,19057,17237,44764,44767,4686,17771,37057,44875,18981,17848,44531,17601,17835,5993,37267,18172,45277)
Unknown column 'np.person' in 'where clause'