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 (17703,17601,44865,13,36472,44848,45042,37057,10402,45180,45043,6782,44873,17835,18719,17237,45561,24441,18688,17335,28530,45051,6609,6875,45277,44855,43800,3,18996,44878,37267,45286,17114,17278,44861,45177,19057,18286,44766,44837,17009,28313,18185,45567,17981,18572,6862,5993,18042,44863,44854,30986,5410,18650,24412,31354,16935,17755,18353,44836,18894,44849,4686,17657,44711,45516,44835,44894,45421,45517)
Unknown column 'np.person' in 'where clause'