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 (17351,18427,18652,18648,17835,44845,30135,14622,32454,17703,17601,45515,44894,17771,6782,17756,30986,45421,44865,13,31354,37057,13922,17237,3,18900,18719,45561,44851,17114,44849,45346,17981,44711,45042,19078,44863,16935,44640,44870,44854,44685,30963,44775,18286,37267,28530,45180,18981,10402,24412,18172,44861,44866,44873,3883,17009,28313,44869,17848,45518,44837,44689,44856,18185,44858,18688,45177,22509,17556)
Unknown column 'np.person' in 'where clause'