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 (45518,45072,44861,17981,44765,44845,19057,43800,24438,4686,45561,18572,44873,10402,17771,45567,5993,17351,6862,45177,19078,44689,5388,6609,36472,30135,30963,18894,17237,18427,44836,18237,13,17657,13425,44863,45180,17904,44868,45421,18301,44855,4765,44768,17601,45043,44766,44869,44878,16885,17839,44867,44674,3,44894,30986,44854,24441,18981,18042,18900,17114,6782,37267,17335,44856,18648,22509,14622,44870)
Unknown column 'np.person' in 'where clause'