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 (18688,6609,24438,17556,44849,24411,17335,45518,18427,18981,4765,44745,5410,44765,44711,44845,16885,14402,9341,44878,44739,44685,17114,18572,44868,18650,44856,17009,18042,44835,39676,44767,44764,44853,4686,45262,44873,45043,17981,17904,44768,30135,44855,28313,5993,18301,18648,44869,6862,44875,45516,45042,5259,18894,13425,44687,17848,17237,44640,19078,8753,45515,44863,44837,44884,44674,44894,13922,45177,32454)
Unknown column 'np.person' in 'where clause'