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 (17771,45180,5388,44765,44835,45346,19057,13425,45515,44531,17092,19078,18572,24441,45517,3,44685,5259,39676,45042,45262,44689,44837,8753,37267,5410,44861,3883,44687,18237,18279,17703,18652,45277,18427,16935,45177,18353,44849,44711,17556,4765,18172,5993,17756,6862,32454,45516,18301,44866,17601,17114,18648,45286,18185,28530,44775,14402,28313,44856,18794,14622,17848,44848,17981,18894,44870,44868,17527,44739)
Unknown column 'np.person' in 'where clause'