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 (18652,17335,44687,45561,30135,45177,17527,13922,17771,44869,18719,44894,24438,44689,18996,44848,44878,45262,44849,5388,30963,45346,17009,32454,44835,18286,45180,37057,18279,44845,45229,8753,45277,24411,17755,14402,44873,17492,18446,44854,44858,17092,17703,18981,45515,30986,17981,43800,45051,18353,4686,44765,17278,44640,44775,17756,3,18648,45518,24441,17657,5410,44856,44867,45421,44711,44868,44739,18794,45042)
Unknown column 'np.person' in 'where clause'