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 (4686,16885,14622,44869,44873,44845,44767,44687,18981,45180,44878,18688,24441,45051,44762,45042,18185,45277,44689,44884,17351,18648,44866,44853,45516,17771,34194,17092,18427,17703,44865,31354,44836,18042,39676,37057,6875,18353,44531,17278,28313,30986,3,18894,45517,18900,44868,44640,18286,18301,17237,45515,44870,45262,45567,45346,44765,44766,30135,44669,44854,17981,44775,3883,44711,44851,5993,18719,13425,44764)
Unknown column 'np.person' in 'where clause'