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 (45072,44745,18794,22509,10402,18996,14622,44687,18427,44766,16885,44685,44856,44711,18446,36472,45043,8753,44867,44858,17278,31354,44767,37057,18185,17839,19078,45042,44855,18719,18648,44640,44845,17335,18688,18652,44674,44854,18286,17556,4686,44861,44894,45515,13988,17755,18042,17703,44878,17114,30986,44870,44739,44884,17981,13922,3,44531,16935,17756,17351,28313,44849,45567,14402,44853,34194,45180,30963,44764)
Unknown column 'np.person' in 'where clause'