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 (19078,45561,17009,18572,44674,18430,30986,17835,18900,32454,44766,45515,17755,45286,18237,45517,24438,44869,44687,13922,44685,45180,17703,18648,44848,44878,45277,18719,5993,44669,44856,24411,45043,5410,17981,44884,37267,44873,17335,44867,18279,44768,17904,4765,44875,18185,44765,6782,37057,44870,43800,14402,18650,18427,44689,18652,17601,18794,4686,44640,44855,28313,44853,31354,45229,45262,18353,18042,44858,17848)
Unknown column 'np.person' in 'where clause'