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 (17756,10402,4686,17492,44878,45516,17904,8753,44687,5388,44851,36472,13988,17839,18688,44671,44863,6875,44894,37267,43800,44669,44766,44868,17755,44869,24412,18650,18185,5410,17351,44867,18996,18042,45177,18900,22509,44853,17009,17771,14622,45043,16885,44762,45286,44866,45072,31354,17601,45180,45567,44849,18430,44875,18172,45229,18652,45518,32454,44775,17237,18427,17278,28313,18446,45262,18719,44845,28530,34194)
Unknown column 'np.person' in 'where clause'