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 (17492,45177,44764,44854,14402,24411,18648,36472,45516,4765,44865,3,44866,45286,34194,44855,6875,44863,44531,4686,5259,45561,22509,45262,45043,18719,44861,44848,18572,17904,17278,44851,31354,18172,18794,17657,6862,5410,18353,45567,18688,44868,28313,44835,17114,44775,44669,45051,18430,18042,44867,44765,45229,18894,44853,44870,18981,45421,44856,44837,39676,10402,17092,17703,44711,17835,32454,17848,44875,45518)
Unknown column 'np.person' in 'where clause'