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 (18172,44853,45346,44855,18042,5388,44689,44865,37057,44762,18427,45072,22509,44851,18430,18652,28530,6875,17335,18996,5993,13,45277,19057,17492,17835,24441,44711,17601,17981,18286,14622,24411,44867,17703,4765,44837,30986,17771,18900,18719,18279,17556,30135,44848,44861,44856,16885,18688,37267,17278,34194,13425,17237,18648,45517,44875,45286,44869,44858,36472,4686,45177,44640,17092,45180,17904,45516,44884,45043)
Unknown column 'np.person' in 'where clause'