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 (44739,45277,39676,44866,17703,5410,18172,18996,16885,17009,44531,18430,3,14622,44855,44856,18185,44711,17904,36472,13425,6609,44861,44685,44875,44766,17114,44765,32454,44853,17278,45346,24411,44674,44873,28530,24441,44878,45180,30135,30963,37057,18981,16935,18648,45262,18900,44845,45177,18652,13,45517,45518,45567,44884,44671,44863,6862,17771,44767,45072,18650,17981,43800,37267,44837,45561,22509,8753,17335)
Unknown column 'np.person' in 'where clause'