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 (44894,24441,44853,8753,18981,18301,45051,24411,5388,5259,17756,5410,6609,17981,44858,19078,24412,18688,18286,45043,6782,30986,44766,24438,17092,44836,44689,44873,18719,4686,44674,45517,45262,18353,44856,18996,44764,17771,39676,44711,6862,36472,9341,17755,44884,18894,32454,44845,18446,19057,44768,45229,18172,17601,44869,37267,44849,44866,44837,17114,44855,43800,17527,44875,44762,16885,18652,45277,6875,45516)
Unknown column 'np.person' in 'where clause'