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 (18900,44685,44861,34194,44870,13,17335,18572,45051,44865,18185,45346,18427,44765,44674,17657,44858,17114,44855,45567,18894,17755,44669,14402,18353,18719,44873,43800,45561,17771,28530,45421,44866,6782,36472,17278,18172,18996,44671,22509,45177,44856,17351,18430,4765,6609,30135,17835,44894,14622,18648,30963,37267,5259,8753,18446,13922,3,18981,45517,17848,44863,13988,44836,44851,18237,24441,5410,44849,3883)
Unknown column 'np.person' in 'where clause'