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,5259,44775,9341,45262,44867,45567,17755,31354,44764,17351,16935,13425,45277,44894,44870,44861,17278,45043,18446,44851,43800,18900,44853,32454,44671,44856,18353,45051,4686,18279,24438,44669,18794,44674,45042,24411,18894,44868,45072,44869,44531,18981,30135,18430,17839,17009,44858,44849,3883,24441,10402,3,6862,17527,44640,28530,17556,17703,17601,44854,18652,37267,45346,5388,18719,44837,45518,17335,34194)
Unknown column 'np.person' in 'where clause'