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 (17835,17904,44837,14622,17771,17755,18894,44835,44878,43800,44531,9341,44775,44640,44866,44685,44861,31354,45072,24441,44689,18427,44671,13988,44687,44869,17351,18688,30963,17981,45051,17335,6782,17492,18446,17756,45346,4686,30986,44858,45043,37057,44739,39676,44768,17009,18794,45177,14402,18237,44867,44873,45262,28530,16885,44884,44875,18286,45515,44767,13425,17527,3883,18430,18981,17657,18900,44868,44870,6609)
Unknown column 'np.person' in 'where clause'