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 (17657,44674,6782,45561,45177,18652,44875,45516,17237,16885,44689,18237,44764,37057,44640,13,44768,17335,18981,17278,45051,39676,5388,44868,18650,43800,14622,44745,18446,45043,17839,30135,34194,17092,18286,44765,44873,18648,44775,4765,4686,18279,18572,17755,18688,44767,44867,45072,17981,44671,17556,18719,44851,17527,44762,6609,45421,45229,28313,45515,45286,17009,44849,18794,5410,44854,37267,24438,44848,14402)
Unknown column 'np.person' in 'where clause'