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 (22509,17492,17835,5410,44853,44845,44849,18794,17755,9341,17839,18430,37267,45043,17703,17981,5993,44869,45262,44640,17114,17278,19078,14622,44775,44894,13,44884,24438,19057,44689,44836,13922,18427,44867,13425,44861,17527,44674,30986,45346,32454,18648,31354,17335,28313,8753,45229,44767,44856,45180,39676,36472,18279,5388,28530,6782,44711,3883,6875,17756,18652,30963,30135,18900,4686,44848,44764,44837,17904)
Unknown column 'np.person' in 'where clause'