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 (17335,17848,44866,45043,34194,18042,18794,5388,18650,44845,18996,44767,45421,17904,3883,44836,19078,5410,17756,18237,4765,44745,17657,18446,18172,44671,44867,44853,44884,45346,14622,17092,45042,18301,44764,44854,44766,44711,18719,6862,9341,17527,18286,13425,6609,17009,44863,16885,30135,18981,44873,5993,44858,44878,30986,31354,28530,45072,8753,17556,45051,44775,45561,44674,44685,45262,17492,44851,18900,4686)
Unknown column 'np.person' in 'where clause'