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 (18650,13425,4765,19057,45517,8753,45043,44884,17835,45051,45515,9341,44894,44768,44863,37057,24412,34194,37267,18172,17601,44835,22509,17114,3883,6875,45262,14622,44531,18446,44836,44848,17904,13,17092,19078,44851,45177,18279,18981,45042,17351,17556,4686,45346,44855,28530,18427,5410,17237,44878,17771,44764,44853,45518,44762,18301,45286,44856,44867,5993,16885,18042,44870,17703,18572,44689,17335,18353,36472)
Unknown column 'np.person' in 'where clause'