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 (39676,44837,4686,8753,17756,6609,18353,18648,13988,44762,45277,44869,17771,44745,16885,16935,18652,17351,17848,44865,44671,36472,45567,13922,28313,44775,44739,44687,44711,19078,34194,44866,37267,13,45180,44867,6782,45262,17278,44870,45346,44861,17981,4765,5993,45177,44884,10402,45516,44836,44766,18650,44873,17835,30963,24412,18900,45229,6862,32454,45561,37057,45421,17703,14622,44851,44640,18430,44848,17839)
Unknown column 'np.person' in 'where clause'