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 (44866,18996,17114,24412,45177,45515,8753,44745,9341,44836,44767,44640,17351,28530,18353,44764,45262,45567,17904,16885,18719,17601,18981,45180,19078,19057,44870,44766,17657,14402,16935,10402,44848,44861,17703,17092,44762,6875,14622,17556,44837,31354,45286,44853,3,5259,3883,44835,18172,18301,44863,44851,17492,18446,30135,36472,17756,44875,30986,44868,18185,4686,18286,45516,17771,17237,44845,45051,17755,30963)
Unknown column 'np.person' in 'where clause'