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 (18353,30963,44868,18279,13988,18572,44674,45515,44878,44775,45042,17703,18794,18894,44767,17114,44873,45286,3883,18446,17601,3,44856,18427,17771,24438,44689,44745,18172,9341,18688,44836,17009,43800,19078,16885,17835,4765,17556,45346,17904,44837,32454,45421,44711,18286,18430,5993,17981,18650,44863,18237,44849,45177,18719,10402,5410,44853,45229,45277,44855,18981,4686,18648,17756,39676,17755,45517,17335,17839)
Unknown column 'np.person' in 'where clause'