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 (43800,18996,3,30986,44837,17335,17755,5993,45567,45286,10402,44869,44671,44765,8753,18650,45180,5259,44853,18172,14402,44835,44873,39676,44878,18185,45346,45177,17835,44863,45515,44687,44855,45517,18648,18894,17351,18301,17904,18688,24412,18042,44866,44867,24441,45421,44851,13,44865,45042,28530,19057,9341,17527,19078,44766,17848,37267,45277,18981,18286,6609,44768,18237,44875,44762,32454,44836,17556,16885)
Unknown column 'np.person' in 'where clause'