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 (44861,28313,17904,17492,6609,44855,18572,19078,39676,44835,17835,18981,5993,44689,45177,6875,44768,5259,14402,44775,17771,17335,17601,44671,44858,44863,18719,44870,37267,17527,17756,17556,6782,18648,44867,18353,44837,17703,5410,36472,44875,45515,17839,44669,17092,16885,44868,44765,24411,13,44848,45043,34194,44739,8753,17278,44856,45421,45561,44894,44531,44849,5388,44836,45051,17981,18652,18279,24438,18430)
Unknown column 'np.person' in 'where clause'