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 (17839,37057,17755,44853,43800,24441,17981,44868,18185,17904,6782,36472,5388,44687,45516,13,44866,44768,32454,45517,37267,16885,17009,44869,17657,45518,24411,44745,44870,18650,17601,18172,30986,30135,44767,3883,45042,18572,45515,28530,6862,6609,17848,18279,44669,18042,5410,44765,18688,18301,18430,18446,18996,3,17114,18652,34194,44775,44674,44863,44878,13922,18353,13988,19078,18427,44856,14402,18648,44762)
Unknown column 'np.person' in 'where clause'