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 (18042,18719,44869,43800,44851,17601,44894,17848,18301,32454,44689,18172,44762,18652,17839,18286,44878,24438,44870,44711,6609,18353,44866,45043,16885,5259,18572,24441,18794,4686,18648,30986,6782,17756,17904,18446,17527,13,17237,45051,44863,44739,44766,44856,14402,22509,37057,10402,44745,44861,44867,44845,45517,44640,17335,44685,44835,5993,44868,30135,19078,8753,44764,44767,44854,44531,18427,18185,44768,24411)
Unknown column 'np.person' in 'where clause'