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 (45051,45421,24438,9341,44685,6782,5410,45042,19078,44866,45561,17351,18446,18794,45516,18279,17981,17755,17114,44873,44849,17556,44867,18286,18172,24412,44848,31354,44762,37267,45072,22509,44845,44861,18301,44854,18719,44836,5388,17703,17092,13988,13,16885,6609,5259,44855,44687,44884,44689,44640,14402,6862,17335,4765,32454,18430,44767,45515,5993,4686,44835,18996,8753,30135,45517,44868,10402,39676,18185)
Unknown column 'np.person' in 'where clause'