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 (17904,18279,17601,10402,17114,18446,4686,44837,30135,45421,16935,8753,17848,16885,18894,18794,45042,17092,44739,13922,18981,45561,18427,17278,9341,44849,6875,44894,17839,17351,44878,17703,44867,44858,44855,44873,44685,18172,13988,5993,44861,30986,18648,13,18688,18185,44863,34194,44531,5388,3,45518,18996,45262,4765,44870,44767,44711,44640,44848,18650,44845,45346,5259,17981,44766,30963,45180,44836,44687)
Unknown column 'np.person' in 'where clause'