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 (18719,17756,17703,17527,37057,18652,5993,45286,13,17114,45567,44845,45229,45515,45042,45421,18996,44875,45051,39676,17237,44854,14622,17904,44745,24412,18648,4765,31354,32454,18894,17848,18301,18794,44767,18185,17335,16935,43800,5410,44685,44884,44869,6862,28530,8753,17981,17657,44853,44836,6609,44766,45262,13922,44865,18172,18427,44669,44856,36472,44768,17601,44868,18900,5259,18650,44640,44866,6875,45277)
Unknown column 'np.person' in 'where clause'