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 (18042,45277,18894,44855,44858,18237,45515,18279,18185,44867,13,44853,13988,44531,28313,44878,18446,45051,44835,44689,17848,17601,4686,37267,17839,17278,44837,44873,44674,17904,16885,18648,44851,24411,45262,44875,44863,44762,45421,32454,18652,18719,10402,44894,36472,28530,45042,14622,24441,39676,6862,3,44768,44856,18688,9341,18430,44866,45043,19078,44765,44764,17835,43800,18981,5993,45567,18301,3883,17335)
Unknown column 'np.person' in 'where clause'