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 (17756,45517,17335,45567,8753,17904,45516,37057,44870,44878,44764,18185,14402,44869,24438,45515,17092,44848,5993,18900,16885,44766,17351,18719,5259,45561,17657,17278,45051,4686,18042,3883,28313,18688,4765,44775,24411,13,44853,18301,9341,45180,6782,18353,5388,18279,45518,17601,18981,17556,44854,17114,44851,24412,44863,44849,19057,18650,37267,44884,17848,30986,17492,18430,44674,44835,44837,45229,18996,6609)
Unknown column 'np.person' in 'where clause'