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 (17492,44884,18185,18650,45043,45561,45567,18172,17335,44767,45517,36472,44766,17981,32454,44775,45072,13,6782,10402,18981,44856,45051,17835,17756,44853,45515,44671,45177,45042,31354,14402,17601,30986,44875,44837,6875,16885,44854,45180,17556,44531,14622,16935,19078,44865,44674,45346,43800,6609,17657,44768,17904,3,45516,37057,30135,45421,5388,45229,18648,18996,44764,44687,44869,22509,18894,6862,17351,17848)
Unknown column 'np.person' in 'where clause'