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,44848,6609,44873,43800,44674,44745,18427,44856,44861,45516,18301,17848,44711,44868,44775,45286,4686,24411,17278,13425,18430,44764,44687,17755,44671,17114,17335,17904,45567,18688,22509,30963,19078,17771,17556,9341,6862,44867,18279,44689,18652,44855,44767,44640,45421,18572,19057,5993,18237,8753,44884,44854,18996,44870,17657,44835,44669,44894,45518,44766,14622,18648,17981,44866,45277,37267,4765,45229,44836)
Unknown column 'np.person' in 'where clause'