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 (45072,5993,17755,5388,44863,18279,18996,45518,17839,44894,18185,45177,44869,44855,44689,17771,13,44739,44870,44766,17703,45567,24441,18427,44848,44878,44687,44685,17556,31354,45346,45229,17981,6782,39676,44674,37267,18981,18301,45421,19078,18794,13988,18353,45051,45277,44835,44868,44849,9341,44858,45286,44866,43800,18648,44856,17848,44768,18430,5410,45516,17756,44836,17237,5259,18172,44854,6862,17114,30986)
Unknown column 'np.person' in 'where clause'