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 (44836,44775,17601,17657,17237,44531,3,45262,44869,45346,24411,36472,45043,44837,18794,18652,45567,4686,37057,24412,17904,45517,44858,28530,44767,6862,18185,18446,24441,45042,17114,5388,45421,6875,32454,4765,17981,37267,44711,18981,44867,18572,44851,17335,18430,17839,44853,44669,6609,13,34194,17771,45072,17527,44875,45518,18650,17703,44884,45515,18894,17092,44849,16935,19078,44873,44671,17835,17848,44870)
Unknown column 'np.person' in 'where clause'