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 (17981,45286,44855,19057,18042,44863,18719,5388,3,6875,36472,37267,16935,18900,44869,17556,6609,13922,24441,44873,18172,45051,44674,17756,34194,45262,44858,39676,18237,17237,44775,44531,44867,45277,45043,45421,4765,17114,44836,32454,44878,6862,44884,43800,13425,45042,17351,44837,45177,5993,18353,18572,44868,18996,9341,45517,44870,18894,44767,44766,17703,45229,44711,19078,17601,44687,44764,24411,44856,18185)
Unknown column 'np.person' in 'where clause'