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 (17351,44855,24441,8753,18900,17237,17092,45177,44687,16885,44848,18427,45043,10402,30135,18301,44671,44745,18719,17756,44863,44854,18185,18648,17848,45517,44711,18279,17527,13425,31354,24438,6875,44764,45180,44869,44849,44689,44836,45277,18286,44894,18794,19057,17601,18996,18688,32454,17335,5993,17009,43800,18650,44856,34194,30963,44858,36472,17114,44866,44870,44835,30986,18572,6609,45561,45286,44868,18894,45262)
Unknown column 'np.person' in 'where clause'