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 (6782,45177,45518,44765,44767,45043,17092,44531,18430,3,44855,44689,13988,45516,19057,44768,4765,44849,45180,44687,17335,10402,18286,18572,44869,16885,18719,44764,45346,44858,44669,44745,18794,44845,45561,45262,17756,18688,13425,17904,44711,17981,45567,44865,24412,18172,17703,44837,45072,30986,17556,44851,44868,36472,5410,39676,44875,45286,17237,44640,18648,17835,37057,17848,45421,44775,44866,19078,22509,5259)
Unknown column 'np.person' in 'where clause'