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 (24441,44767,43800,44685,45567,18185,44766,18172,17657,18996,13,44851,18301,44867,17703,24411,45346,18430,18719,30135,18572,17904,44836,45286,13922,17848,18688,44711,10402,44858,3883,18900,45051,44868,8753,18652,45561,45516,9341,17755,13425,44674,45277,44837,34194,44849,44531,45421,44873,18650,17839,6862,44669,44765,17981,44640,18427,14402,44853,17009,28530,18279,44866,44775,18353,44884,18446,45515,30986,16885)
Unknown column 'np.person' in 'where clause'