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 (44873,44863,22509,37057,13988,44745,45286,44866,44865,44855,44858,34194,44849,18650,45043,18648,18996,24441,44766,6609,16885,30986,36472,17904,39676,45051,45561,44884,13,44674,18446,44845,19078,5410,13425,44870,5259,17092,45518,45515,17009,17601,18794,44689,44861,28530,18427,45421,32454,45177,44640,18301,17756,44894,18172,18652,44764,17981,18900,45516,31354,44687,18279,44878,10402,44853,18185,3883,44669,17771)
Unknown column 'np.person' in 'where clause'