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 (44711,45567,45180,30135,44869,24441,17009,13,17703,24411,44867,17601,44884,9341,44768,16935,37057,28530,45051,13922,17904,44865,45561,45277,4765,18042,36472,18648,16885,45177,44856,43800,19078,18353,18981,44766,44868,18900,18172,18286,44762,24438,45262,28313,18794,44851,44685,17835,45421,44873,4686,44687,44875,44640,45043,17981,17114,37267,32454,3883,45229,17839,14622,44845,39676,45042,18996,6609,5993,44671)
Unknown column 'np.person' in 'where clause'