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 (17492,17601,30986,43800,30135,44878,17703,44884,13,4686,28530,44687,18172,17556,18286,18794,18981,44640,17657,16885,45286,44768,13922,37267,45072,5259,6782,5388,44745,18446,24441,44845,39676,44671,44868,45043,45517,18719,37057,44775,18042,45346,18572,6609,44894,18427,44875,5410,14622,9341,44762,17839,18430,44856,44867,17335,17771,34194,18237,45421,45262,17237,6862,17755,18301,44861,45567,45277,18652,44873)
Unknown column 'np.person' in 'where clause'