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,44766,44853,44861,39676,45421,17839,45567,44849,13922,45517,45177,44836,30963,44863,44711,18648,18652,3,44873,45346,36472,22509,44687,45051,18996,19078,44640,17601,18650,17771,44745,44878,44894,44845,17556,4765,24438,44848,10402,44855,18286,17981,6875,17703,17237,17351,37057,18981,14402,5410,13988,17278,18353,18185,44869,34194,44837,17848,17755,6609,17092,6782,17009,44671,45515,18427,18172,44854,31354)
Unknown column 'np.person' in 'where clause'