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,45051,17981,24438,18688,34194,16885,17351,13922,17904,28313,44674,17835,17839,17771,13425,36472,44687,44671,30135,4765,44868,45072,45277,44861,43800,28530,44849,18185,3,5388,18042,44869,24441,39676,4686,5993,17756,6609,18719,44836,44768,45421,44766,17657,45177,17703,44875,18353,44853,44884,37267,3883,16935,45286,45567,18652,44866,8753,44531,17335,17237,44863,45229,45346,44855,30986,22509,6862,18996)
Unknown column 'np.person' in 'where clause'