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 (5993,44878,17092,19078,44745,18900,9341,44856,30135,18427,45043,44849,18650,44775,32454,3883,44867,18572,44687,17657,3,45286,45177,44851,18172,13425,18794,44835,45516,18446,18353,17835,44837,45561,17278,17848,19057,17755,13,17839,45517,18185,44711,45518,44764,37267,30963,17114,44866,18648,45346,18981,44739,18688,17771,28530,45042,22509,34194,44873,6609,17981,18042,45051,44868,44531,18301,17556,8753,6782)
Unknown column 'np.person' in 'where clause'