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 (3883,30986,6862,18794,39676,45346,45567,44855,45286,44863,18427,45229,44845,45043,45517,24441,18185,17771,45516,17755,17839,45262,44861,45561,44745,17848,14402,36472,6782,22509,44878,14622,13,17601,31354,28530,44775,45051,18446,44669,44739,18172,44866,17904,16885,18353,17351,44765,44835,17092,37267,17835,6609,24412,44894,44875,5259,17335,45421,44848,17981,8753,18648,44851,45177,13425,24438,45180,18430,18301)
Unknown column 'np.person' in 'where clause'