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 (10402,45516,44849,44836,17981,13922,44848,17527,4765,44853,17771,5388,3,44878,44867,17848,44767,18719,45229,18042,8753,17556,45042,45517,17904,45180,17114,17756,44687,44858,44669,44766,44640,44764,17657,44875,18172,3883,24441,45421,18981,17237,18430,44854,17092,44674,32454,18652,44866,30963,17755,13,4686,6875,44711,44856,18279,5259,16935,9341,44868,6862,39676,18794,18688,44768,14402,44863,5993,13425)
Unknown column 'np.person' in 'where clause'