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 (17114,39676,18185,44739,17237,30986,30135,18572,18279,44853,44764,44835,44868,18719,44884,17657,19078,4765,17981,44870,24441,10402,14402,16935,45072,45286,18981,18894,18237,24438,30963,44858,3883,44837,45517,17351,44861,44869,45518,45180,44866,17771,45043,24411,24412,18427,44768,5410,45567,44856,44689,34194,45516,44531,45346,44867,17839,18900,17092,16885,18286,44836,44687,44848,3,17756,37057,13988,44685,4686)
Unknown column 'np.person' in 'where clause'