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 (44875,8753,6862,45177,45051,44836,13922,17492,44764,17556,44669,44845,4686,44870,17981,17771,18172,45180,22509,18719,44855,24438,45421,4765,44835,3,17835,45072,44674,45346,44884,17351,44685,17848,30963,37267,44762,17601,32454,17237,39676,44711,45567,44687,17092,44858,45286,34194,30135,31354,14402,19078,18572,17335,44873,6875,17756,44766,17114,18652,13988,18301,5993,18996,28313,24441,10402,44878,18185,28530)
Unknown column 'np.person' in 'where clause'