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 (18894,13,44669,44863,44853,18427,45567,3883,44767,19078,17009,18652,6609,18353,44856,17237,16935,10402,24412,36472,28530,44711,17981,45561,44689,18279,13425,24438,17335,17839,44768,44870,17848,39676,5388,30135,17755,18237,18996,44775,17092,44884,44867,17904,44837,5410,14402,18900,24411,45051,17835,14622,44854,18301,44687,44765,45229,30963,44849,44640,45516,45043,44878,44875,44865,44685,44858,45346,6782,34194)
Unknown column 'np.person' in 'where clause'