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 (45561,17351,18688,30986,44775,45042,32454,44851,44685,44766,18572,44837,45262,45180,44640,6862,44836,45567,18430,17981,24411,44835,44853,18279,44869,44868,18427,18996,4686,3883,45516,45515,22509,44867,45229,18185,44875,10402,45286,36472,44894,17835,14402,17092,45518,17492,3,34194,45177,44531,18172,44669,18648,18894,17839,17904,28313,17009,17756,5388,44854,8753,18042,30135,5410,13425,4765,44873,39676,5993)
Unknown column 'np.person' in 'where clause'