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 (17756,44854,44775,17237,22509,14402,17351,44875,44835,18446,13922,44685,17904,45051,18894,18237,6782,3,36472,44845,30135,44855,10402,17278,28530,45042,45516,44870,18279,4765,18185,44867,44858,18572,44868,44768,45346,37267,34194,13,44745,16885,18650,17009,44848,44674,17492,24441,19057,17527,45421,44878,6609,44851,14622,18719,45072,18353,44869,18427,45515,18688,17981,39676,45517,44711,17835,30963,17755,44640)
Unknown column 'np.person' in 'where clause'