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 (44856,44775,10402,45517,17771,17278,44855,18353,44640,44531,17848,17351,18279,45177,24438,45421,44765,17492,17092,28530,44884,17904,18650,44845,17835,3,17703,44875,44711,4765,18981,45346,44689,6875,44865,44858,17114,39676,5993,45072,45277,34194,18794,5259,5388,18900,44766,18652,44863,45262,44869,16935,18894,45516,18185,18301,45043,18688,31354,17756,18572,44868,44853,44878,24411,17335,44685,17527,6782,45518)
Unknown column 'np.person' in 'where clause'