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 (17601,44865,18430,43800,30963,44764,45346,9341,28530,44837,44711,18353,44689,18427,16935,44884,17351,18996,18172,44868,45277,18688,18572,44640,22509,44739,44863,10402,18185,18900,45229,44775,44873,17981,4686,45177,44685,31354,45421,13,17114,18286,17848,17904,37267,19078,30135,3883,44861,44845,44875,45516,16885,13425,6609,44856,6782,19057,18894,5259,45286,44836,3,18279,14402,17835,45567,44762,5410,18981)
Unknown column 'np.person' in 'where clause'