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 (16935,44868,17009,28313,32454,44873,10402,44775,17835,45177,36472,17092,44867,45277,31354,17839,39676,17981,45262,44851,17351,44674,45567,44858,17237,44861,44739,18446,6609,18794,3883,44764,44767,44856,44685,44863,17492,19078,44853,44766,45517,18688,5993,8753,18172,17278,6782,17657,44835,44531,18996,45072,44855,24438,18430,13922,45421,6875,5410,30135,44837,44870,44762,45516,13425,24411,43800,18279,45043,17114)
Unknown column 'np.person' in 'where clause'